2.6 and 2.7 while1 grammar rule

Fixes issue #40
This commit is contained in:
rocky
2016-07-27 13:19:42 -04:00
parent 87dc5ad80c
commit 5ffd9b2be7
10 changed files with 29 additions and 6 deletions

View File

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