Python 3 "while True" bug

This commit is contained in:
rocky
2016-05-09 14:44:01 -04:00
parent 378cca27da
commit d823dfb5d3
4 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
if args == ['-']:
while True:
try:
compile(filename, doraise=True)
except RuntimeError:
rv = 1
else:
rv = 1
print(rv)