You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Correct generator function parsing for 3.3..3.5
This commit is contained in:
@@ -174,9 +174,11 @@ class ComprehensionMixin:
|
||||
tree = tree[1]
|
||||
pass
|
||||
|
||||
if tree in ("genexpr_func_async",):
|
||||
if tree[3] == "comp_iter":
|
||||
iter_index = 3
|
||||
if tree in ("genexpr_func", "genexpr_func_async",):
|
||||
for i in range(3, 5):
|
||||
if tree[i] == "comp_iter":
|
||||
iter_index = i
|
||||
break
|
||||
|
||||
n = tree[iter_index]
|
||||
|
||||
|
Reference in New Issue
Block a user