diff options
author | David Beazley <dave@dabeaz.com> | 2015-04-20 06:33:35 -0500 |
---|---|---|
committer | David Beazley <dave@dabeaz.com> | 2015-04-20 06:33:35 -0500 |
commit | 7238d1d13c01c10d4602142c45b2471aee648134 (patch) | |
tree | b764055fecb2a8660cb92cdb7d60fd61b4cc04cd /ply/lex.py | |
parent | f9146e90265fd6fc8b8da464948458170f1da274 (diff) | |
download | ply-7238d1d13c01c10d4602142c45b2471aee648134.tar.gz |
Various code cleanup all over. Better use of booleans and sets. In progress.
Diffstat (limited to 'ply/lex.py')
-rw-r--r-- | ply/lex.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1092,7 +1092,7 @@ def runmain(lexer=None,data=None): else: _token = token - while 1: + while True: tok = _token() if not tok: break sys.stdout.write("(%s,%r,%d,%d)\n" % (tok.type, tok.value, tok.lineno,tok.lexpos)) |