You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Fix bug in Python 3 lambda expression handling
Some other small cleanup changes
This commit is contained in:
@@ -524,8 +524,9 @@ class Python3Parser(PythonParser):
|
||||
rule = 'unpack_list ::= ' + opname + ' designator' * token.attr
|
||||
elif opname_base.startswith('MAKE_FUNCTION'):
|
||||
args_pos, args_kw, annotate_args = token.attr
|
||||
self.addRule('mklambda ::= %sLOAD_LAMBDA %s' %
|
||||
('pos_arg ' * args_pos, opname), nop_func)
|
||||
rule = ('mklambda ::= %sLOAD_LAMBDA LOAD_CONST %s' %
|
||||
('pos_arg '* args_pos, opname))
|
||||
self.add_unique_rule(rule, opname, token.attr, customize)
|
||||
if self.version > 3.2:
|
||||
rule = ('mkfunc ::= %skwargs %s %s' %
|
||||
('pos_arg ' * args_pos,
|
||||
|
Reference in New Issue
Block a user