projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36281f6
)
use the more idomatic (and Py3k faster) while True
author
Benjamin Peterson
<benjamin@python.org>
Thu, 5 Jun 2008 23:07:42 +0000
(23:07 +0000)
committer
Benjamin Peterson
<benjamin@python.org>
Thu, 5 Jun 2008 23:07:42 +0000
(23:07 +0000)
Lib/tokenize.py
patch
|
blob
|
history
diff --git
a/Lib/tokenize.py
b/Lib/tokenize.py
index fdc5cbfb416380b0bf355b51dc64ef7dfeb20574..31366deb1f579b7fbdbd3c046526154a1b6cb29b 100644
(file)
--- a/
Lib/tokenize.py
+++ b/
Lib/tokenize.py
@@
-337,7
+337,7
@@
def _tokenize(readline, encoding):
if encoding is not None:
yield (ENCODING, encoding, (0, 0), (0, 0), '')
- while
1:
# loop over lines in stream
+ while
True:
# loop over lines in stream
try:
line = readline()
except StopIteration: