You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Bug in Python 3.x genexpr
This commit is contained in:
@@ -1025,7 +1025,8 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
|
||||
def n_genexpr(self, node):
|
||||
self.write('(')
|
||||
self.comprehension_walk(node, iter_index=3)
|
||||
code_index = -6 if self.version > 3.0 else -5
|
||||
self.comprehension_walk(node, iter_index=3, code_index=code_index)
|
||||
self.write(')')
|
||||
self.prune()
|
||||
|
||||
|
Reference in New Issue
Block a user