Merge branch 'master' into python-2.4

This commit is contained in:
rocky
2019-05-08 08:57:59 -04:00
4 changed files with 6 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -38,3 +38,7 @@ filename = '.'
source = 'foo'
source = (f"__file__ = r'''{os.path.abspath(filename)}'''\n"
+ source + "\ndel __file__")
# From 3.7.3 datalasses.py
log_rounds = 5
assert "05$" == f'{log_rounds:02d}$'

View File

@@ -464,6 +464,7 @@ def customize_for_version36(self, version):
elif subnode == 'fstring_single':
f_conversion(subnode)
data = self.traverse(subnode, indent='')
if data[0:1] == 'f':
data = strip_quotes(data[1:])
result += data
pass