You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
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": (
|
"whilestmt38": (
|
||||||
"%|while %c:\n%+%c%-\n\n",
|
"%|while %c:\n%+%c%-\n\n",
|
||||||
(1, ("bool_op", "testexpr", "testexprc")),
|
(1, ("bool_op", "testexpr", "testexprc")),
|
||||||
(2, ("l_stmts", "l_stmts_opt", "pass")),
|
(2, ("_stmts", "l_stmts", "l_stmts_opt", "pass")),
|
||||||
),
|
),
|
||||||
"whileTruestmt38": (
|
"whileTruestmt38": (
|
||||||
"%|while True:\n%+%c%-\n\n",
|
"%|while True:\n%+%c%-\n\n",
|
||||||
|
Reference in New Issue
Block a user