From 84fd71b73bc0334c0d8d6d348da6714e365768d8 Mon Sep 17 00:00:00 2001 From: rocky Date: Tue, 25 Apr 2017 07:31:01 -0400 Subject: [PATCH] Python 3.6 CALL_FUNCTION_EX first attempt --- test/bytecode_3.6/01_call_function.pyc | Bin 0 -> 130 bytes ...ded_arg.pyc => 01_extended_arg.pyc-notyet} | Bin ... 02_build_map_unpack_with_call.pyc-notyet} | Bin test/simple_source/bug36/01_call_function.py | 5 ++++ uncompyle6/parsers/parse36.py | 4 +++ uncompyle6/scanners/scanner36.py | 16 ++++++++-- uncompyle6/semantics/pysource.py | 28 ++++++++++++------ 7 files changed, 42 insertions(+), 11 deletions(-) create mode 100644 test/bytecode_3.6/01_call_function.pyc rename test/bytecode_3.6/{01_extended_arg.pyc => 01_extended_arg.pyc-notyet} (100%) rename test/bytecode_3.6/{02_build_map_unpack_with_call.pyc => 02_build_map_unpack_with_call.pyc-notyet} (100%) create mode 100644 test/simple_source/bug36/01_call_function.py diff --git a/test/bytecode_3.6/01_call_function.pyc b/test/bytecode_3.6/01_call_function.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c18dbcbb710714d39321a51eb8a08b43c5e5d8f7 GIT binary patch literal 130 zcmXr!<>k7s`#(Z~k%8ec0}@~YvK@f9m2-8yLnXC+6hDr 0: - self.write(sep) - arg += 1 + try: + low, high, sep = entry[arg] + remaining = len(node[low:high]) + for subnode in node[low:high]: + self.preorder(subnode) + remaining -= 1 + if remaining > 0: + self.write(sep) + pass + pass + arg += 1 + except: + from trepan.api import debug; debug() + pass elif typ == 'D': low, high, sep = entry[arg] remaining = len(node[low:high])