Python 3.x control-flow bug...

"pass" statement inside "while True"
This commit is contained in:
rocky
2017-05-07 09:10:05 -04:00
parent 50d875f6a6
commit 605721c995
4 changed files with 15 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
# 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