You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
BIN
test/bytecode_2.6/04_lastc_with_loops.pyc
Normal file
BIN
test/bytecode_2.6/04_lastc_with_loops.pyc
Normal file
Binary file not shown.
15
test/simple_source/bug26/04_lastc_with_loops.py
Normal file
15
test/simple_source/bug26/04_lastc_with_loops.py
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Bug was the join of two "for" loops at the end of an "if"
|
||||||
|
# this happens in Python 2.6 and before
|
||||||
|
|
||||||
|
def cheatCogdoMazeGame(self, base, kindOfCheat):
|
||||||
|
if base:
|
||||||
|
maze = kindOfCheat
|
||||||
|
if maze:
|
||||||
|
if kindOfCheat == 0:
|
||||||
|
for suitNum in maze.game.suitsById.keys():
|
||||||
|
maze.sendUpdate()
|
||||||
|
elif kindOfCheat == 1:
|
||||||
|
for joke in maze.game:
|
||||||
|
maze.sendUpdate()
|
||||||
|
else:
|
||||||
|
self.sendUpdate()
|
@@ -155,7 +155,7 @@ class Python26Parser(Python2Parser):
|
|||||||
iflaststmtl ::= testexpr c_stmts_opt jb_cf_pop
|
iflaststmtl ::= testexpr c_stmts_opt jb_cf_pop
|
||||||
iflaststmt ::= testexpr c_stmts_opt JUMP_ABSOLUTE come_from_pop
|
iflaststmt ::= testexpr c_stmts_opt JUMP_ABSOLUTE come_from_pop
|
||||||
|
|
||||||
lastc_stmt ::= iflaststmt COME_FROM
|
lastc_stmt ::= iflaststmt come_froms
|
||||||
|
|
||||||
ifstmt ::= testexpr_then _ifstmts_jump
|
ifstmt ::= testexpr_then _ifstmts_jump
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user