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