mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-02-17 03:38:13 +00:00
3.0 set comprehension bug
This commit is contained in:
parent
50697bb79e
commit
2b3cd696db
@ -465,8 +465,13 @@ class ComprehensionMixin:
|
||||
self.write(": ")
|
||||
self.preorder(n[1])
|
||||
else:
|
||||
if self.version == (3, 0) and len(n) > 1:
|
||||
body = 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user