From 0706f18b1d8b51fb18bcd4df707761c4a6d82535 Mon Sep 17 00:00:00 2001 From: rocky Date: Tue, 14 Jan 2020 00:09:04 -0500 Subject: [PATCH] 3.7 test_fstring now works. --- test/stdlib/3.7-exclude.sh | 1 - uncompyle6/semantics/customize36.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test/stdlib/3.7-exclude.sh b/test/stdlib/3.7-exclude.sh index 0c64895d..952db1eb 100644 --- a/test/stdlib/3.7-exclude.sh +++ b/test/stdlib/3.7-exclude.sh @@ -45,7 +45,6 @@ SKIP_TESTS=( [test_float.py]=1 [test_format.py]=1 [test_frame.py]=1 - [test_fstring.py]=1 # Investigate [test_ftplib.py]=1 [test_functools.py]=1 [test_gdb.py]=1 # it fails on its own diff --git a/uncompyle6/semantics/customize36.py b/uncompyle6/semantics/customize36.py index 9148b7b0..8715da98 100644 --- a/uncompyle6/semantics/customize36.py +++ b/uncompyle6/semantics/customize36.py @@ -516,7 +516,7 @@ def customize_for_version36(self, version): for expr in node[:-1]: assert expr == "expr" value = self.traverse(expr, indent="") - if expr[0].kind.startswith('formatted_value'): + if expr[0].kind.startswith("formatted_value"): # remove leading 'f' if value.startswith("f"): value = value[1:]