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