You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Fix bug in Python 3 lambda expression handling
Some other small cleanup changes
This commit is contained in:
@@ -1605,7 +1605,10 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
pos_args = args_node.attr
|
||||
pass
|
||||
|
||||
code = node[code_index].attr
|
||||
if self.version > 3.0 and isLambda and iscode(node[-3].attr):
|
||||
code = node[-3].attr
|
||||
else:
|
||||
code = node[code_index].attr
|
||||
|
||||
assert iscode(code)
|
||||
code = Code(code, self.scanner, self.currentclass)
|
||||
|
Reference in New Issue
Block a user