summaryrefslogtreecommitdiff
path: root/ply/lex.py
diff options
context:
space:
mode:
authorDavid Beazley <dave@dabeaz.com>2015-04-20 06:33:35 -0500
committerDavid Beazley <dave@dabeaz.com>2015-04-20 06:33:35 -0500
commit7238d1d13c01c10d4602142c45b2471aee648134 (patch)
treeb764055fecb2a8660cb92cdb7d60fd61b4cc04cd /ply/lex.py
parentf9146e90265fd6fc8b8da464948458170f1da274 (diff)
downloadply-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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ply/lex.py b/ply/lex.py
index 15ca924..19f560b 100644
--- a/ply/lex.py
+++ b/ply/lex.py
@@ -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))