You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Merge branch 'python-3.3-to-3.5' into python-3.0-to-3.2
This commit is contained in:
BIN
test/bytecode_3.8/03_while_bug.pyc
Normal file
BIN
test/bytecode_3.8/03_while_bug.pyc
Normal file
Binary file not shown.
9
test/simple_source/bug38/03_while_bug.py
Normal file
9
test/simple_source/bug38/03_while_bug.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# See https://github.com/rocky/python-uncompyle6/issues/498
|
||||
# Bug was in not allowing _stmts in whilestmt38
|
||||
import time
|
||||
|
||||
r = 0
|
||||
while r == 1:
|
||||
print(time.time())
|
||||
if r == 1:
|
||||
r = 0
|
@@ -144,7 +144,7 @@ def customize_for_version38(self, version):
|
||||
"whilestmt38": (
|
||||
"%|while %c:\n%+%c%-\n\n",
|
||||
(1, ("bool_op", "testexpr", "testexprc")),
|
||||
(2, ("l_stmts", "l_stmts_opt", "pass")),
|
||||
(2, ("_stmts", "l_stmts", "l_stmts_opt", "pass")),
|
||||
),
|
||||
"whileTruestmt38": (
|
||||
"%|while True:\n%+%c%-\n\n",
|
||||
|
Reference in New Issue
Block a user