You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Fix bugs introduced by last commit
This commit is contained in:
@@ -193,12 +193,12 @@ def customize_for_version3(self, version):
|
||||
def n_yield_from(node):
|
||||
self.write('yield from')
|
||||
self.write(' ')
|
||||
if 3.3 <= self.version <= 3.4:
|
||||
if 3.3 == self.version:
|
||||
self.preorder(node[0][0][0][0])
|
||||
elif self.version >= 3.5:
|
||||
elif self.version >= 3.4:
|
||||
self.preorder(node[0])
|
||||
else:
|
||||
assert False, "Don't know how ths Python handles 'yield from'."
|
||||
assert False, "Don't know how this Python handles 'yield from'."
|
||||
self.prune() # stop recursing
|
||||
self.n_yield_from = n_yield_from
|
||||
|
||||
|
Reference in New Issue
Block a user