From 9b7d978944a1825cb8af4f69acf99574b57bbb04 Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 22 Oct 2016 07:37:21 -0400 Subject: [PATCH] Move fstring rules inside a 3.6+ check --- pytest/test_fstring.py | 4 ++-- test/bytecode_3.6/01_fstring.pyc | Bin 227 -> 255 bytes test/simple_source/bug36/01_fstring.py | 2 ++ uncompyle6/semantics/pysource.py | 32 +++++++++++++++---------- 4 files changed, 23 insertions(+), 15 deletions(-) diff --git a/pytest/test_fstring.py b/pytest/test_fstring.py index 1f019eb6..2789d82a 100644 --- a/pytest/test_fstring.py +++ b/pytest/test_fstring.py @@ -142,9 +142,9 @@ def test_uncompyle_fstring(fstring): @pytest.mark.skipif(PYTHON_VERSION < 3.6, reason='need at least python 3.6') @pytest.mark.parametrize('fstring', [ - #"f'{abc}{abc!s}'", + "f'{abc}{abc!s}'", "f'{abc}0'", ]) def test_uncompyle_direct(fstring): """useful for debugging""" - run_test(fstring) \ No newline at end of file + run_test(fstring) diff --git a/test/bytecode_3.6/01_fstring.pyc b/test/bytecode_3.6/01_fstring.pyc index 6507cc0e54fe4ec64eaf8386a6956c231e318a3c..7d959b54b1d665538bb532c1af2e77a323259527 100644 GIT binary patch delta 163 zcmaFN_@A-fh?ke^ODA_k6$1mqV<3hD4j{_`h>P8TL<&O`LkeRQV=7Y$Q!2x3h7{&h z#@S3MEI^Vmg>^1_Gb1BIDpM*mP=;+T6M_d6VTABg*n=4~Ic_ml++wV(;>pY_Ni8bK k&q