You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
Tweak last commit
This commit is contained in:
@@ -5,4 +5,4 @@ if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
|
||||
echo "This script should be *sourced* rather than run directly through bash"
|
||||
exit 1
|
||||
fi
|
||||
export PYVERSIONS='3.6.15 3.7.12 pyston-2.3 3.8.11 3.9.7 3.10.0'
|
||||
export PYVERSIONS='3.6.15 3.7.12 pyston-2.3 3.8.12 3.9.9 3.10.0'
|
||||
|
BIN
test/bytecode_pypy3.7_run/01_callback.pyc
Normal file
BIN
test/bytecode_pypy3.7_run/01_callback.pyc
Normal file
Binary file not shown.
@@ -49,18 +49,17 @@ def customize_for_version(self, is_pypy, version):
|
||||
def n_call_kw_pypy37(node):
|
||||
self.template_engine(("%p(", (0, 100)), node)
|
||||
assert node[-1] == "CALL_METHOD_KW"
|
||||
pypy_kw_keys = node[-2]
|
||||
assert pypy_kw_keys == "pypy_kw_keys"
|
||||
kw_names = node[-2]
|
||||
assert kw_names == "pypy_kw_keys"
|
||||
|
||||
flat_elems = flatten_list(node[1:-2])
|
||||
# FIXME zip pypy_kw_keys and elems
|
||||
|
||||
self.indent_more(INDENT_PER_LEVEL)
|
||||
sep = ""
|
||||
|
||||
n = len(flat_elems)
|
||||
kw_keys_tuple = pypy_kw_keys[0].attr
|
||||
assert n == len(kw_keys_tuple)
|
||||
kwargs_names = kw_names[0].attr
|
||||
assert n == len(kwargs_names)
|
||||
for i in range(n):
|
||||
elem = flat_elems[i]
|
||||
assert elem == "expr"
|
||||
@@ -70,7 +69,7 @@ def customize_for_version(self, is_pypy, version):
|
||||
sep += "\n" + self.indent + INDENT_PER_LEVEL[:-1]
|
||||
pass
|
||||
self.write(sep)
|
||||
self.write(f"{kw_keys_tuple[i]}={value}")
|
||||
self.write(f"{kwargs_names[i]}={value}")
|
||||
sep = ", "
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user