Files
python-uncompyle6/test/simple_source/looping/12_if_while_true_pass.py
rocky 605721c995 Python 3.x control-flow bug...
"pass" statement inside "while True"
2017-05-07 09:10:05 -04:00

15 lines
400 B
Python

# Python 3.3 pyclbr.py
# Note that Python 3 adds a lot of unecessary "continues"
# and puts that in for "pass"
def _readmodule(g, token, path):
for tokentype in g:
if g:
while True:
if token:
token = 1
elif token:
pass
elif tokentype:
token = 7
token = 10