You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Merge branch 'master' into python-3.3-to-3.5
This commit is contained in:
@@ -1178,6 +1178,8 @@ class Python3Parser(PythonParser):
|
|||||||
"pos_arg " * args_pos,
|
"pos_arg " * args_pos,
|
||||||
opname,
|
opname,
|
||||||
)
|
)
|
||||||
|
self.add_unique_rule(rule, opname, token.attr, customize)
|
||||||
|
|
||||||
elif (3, 3) <= self.version < (3, 5):
|
elif (3, 3) <= self.version < (3, 5):
|
||||||
if annotate_args > 0:
|
if annotate_args > 0:
|
||||||
rule = (
|
rule = (
|
||||||
@@ -1195,8 +1197,10 @@ class Python3Parser(PythonParser):
|
|||||||
"pos_arg " * args_pos,
|
"pos_arg " * args_pos,
|
||||||
opname,
|
opname,
|
||||||
)
|
)
|
||||||
|
self.add_unique_rule(rule, opname, token.attr, customize)
|
||||||
|
|
||||||
elif self.version >= (3, 5):
|
|
||||||
|
if self.version >= (3, 4):
|
||||||
if not self.is_pypy:
|
if not self.is_pypy:
|
||||||
load_op = "LOAD_STR"
|
load_op = "LOAD_STR"
|
||||||
else:
|
else:
|
||||||
@@ -1221,7 +1225,7 @@ class Python3Parser(PythonParser):
|
|||||||
opname,
|
opname,
|
||||||
)
|
)
|
||||||
|
|
||||||
self.add_unique_rule(rule, opname, token.attr, customize)
|
self.add_unique_rule(rule, opname, token.attr, customize)
|
||||||
|
|
||||||
if args_kw == 0:
|
if args_kw == 0:
|
||||||
rule = "mkfunc ::= %sload_closure load_genexpr %s" % (
|
rule = "mkfunc ::= %sload_closure load_genexpr %s" % (
|
||||||
|
Reference in New Issue
Block a user