Tweak last commit

This commit is contained in:
rocky
2021-11-22 09:27:16 -05:00
parent 2ed211e0d4
commit 3a63847d22
3 changed files with 6 additions and 7 deletions

View File

@@ -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'

Binary file not shown.

View File

@@ -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