A couple of 3.6 bugs...

remove parens around decorators by adjusting precidence
Partial handling of quotes within 3.6 format strings
This commit is contained in:
rocky
2018-03-21 19:54:28 -04:00
parent d41a858f80
commit 7fc7e083c3
7 changed files with 44 additions and 8 deletions

View File

@@ -1,5 +1,13 @@
# From 3.6 _markupbase _parse_doctype_subset()
def bug(self, j):
def bug(self, j, a, b):
self.parse_comment(j, report=0)
self.parse_comment(j, report=1, foo=2)
self.parse_comment(a, b, report=3)
# From 3.6 fnmatch.py
# Bug was precidence parenthesis around decorator
import functools
@functools.lru_cache(maxsize=256, typed=True)
def _compile_pattern(pat):
pass