You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Back off 3.5 control flow for now
This commit is contained in:
BIN
test/bytecode_3.5/02_while_and.pyc
Normal file
BIN
test/bytecode_3.5/02_while_and.pyc
Normal file
Binary file not shown.
4
test/simple_source/bug35/02_while_and.py
Normal file
4
test/simple_source/bug35/02_while_and.py
Normal file
@@ -0,0 +1,4 @@
|
||||
# Bug in 3.5 cmd.py
|
||||
# Bug is "while and" not getting handled properly
|
||||
i, n = 0, 5
|
||||
while i < n and __file__ in (1,2): i += 1
|
@@ -948,7 +948,7 @@ class Scanner3(Scanner):
|
||||
self.not_continue.add(pre_rtarget)
|
||||
else:
|
||||
# For now, we'll only tag forward jump.
|
||||
if self.version >= 3.5:
|
||||
if self.version >= 3.6:
|
||||
if target > offset:
|
||||
self.fixed_jumps[offset] = target
|
||||
pass
|
||||
|
Reference in New Issue
Block a user