You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
3.0 set comprehension bug
This commit is contained in:
@@ -465,10 +465,15 @@ class ComprehensionMixin:
|
||||
self.write(": ")
|
||||
self.preorder(n[1])
|
||||
else:
|
||||
if self.version == (3, 0) and len(n) > 1:
|
||||
if self.version == (3, 0):
|
||||
if isinstance(n, Token):
|
||||
body = store
|
||||
elif len(n) > 1:
|
||||
body = n[1]
|
||||
else:
|
||||
body = n[0]
|
||||
else:
|
||||
body = n[0]
|
||||
self.preorder(body)
|
||||
|
||||
if node == "list_comp_async":
|
||||
|
Reference in New Issue
Block a user