mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-23 05:00:07 +00:00
parent
0627215e98
commit
e3579463ab
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",
|
||||
|
Loading…
Reference in New Issue
Block a user