You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
More 3.6+ fstring bugs
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -38,3 +38,7 @@ filename = '.'
|
|||||||
source = 'foo'
|
source = 'foo'
|
||||||
source = (f"__file__ = r'''{os.path.abspath(filename)}'''\n"
|
source = (f"__file__ = r'''{os.path.abspath(filename)}'''\n"
|
||||||
+ source + "\ndel __file__")
|
+ source + "\ndel __file__")
|
||||||
|
|
||||||
|
# From 3.7.3 datalasses.py
|
||||||
|
log_rounds = 5
|
||||||
|
assert "05$" == f'{log_rounds:02d}$'
|
||||||
|
@@ -464,7 +464,8 @@ def customize_for_version36(self, version):
|
|||||||
elif subnode == 'fstring_single':
|
elif subnode == 'fstring_single':
|
||||||
f_conversion(subnode)
|
f_conversion(subnode)
|
||||||
data = self.traverse(subnode, indent='')
|
data = self.traverse(subnode, indent='')
|
||||||
data = strip_quotes(data[1:])
|
if data[0:1] == 'f':
|
||||||
|
data = strip_quotes(data[1:])
|
||||||
result += data
|
result += data
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user