Files
python-uncompyle6/test/simple_source/bug26/04_lastc_with_loops.py
2018-10-05 12:37:16 -04:00

16 lines
492 B
Python

# 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()