commit | c259cc9c4c1c90efaeace2c9786786a5813cf950 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Mar 30 21:43:35 2006 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Mar 30 21:43:35 2006 +0000 |
tree | ea3deedb2a0ec6a47fc5606786977f6b33eb8693 | |
parent | 090f81588fc2298b3c967ddda3c3ffc592caf92a [diff] |
Insert a safety space after numbers as well as names in untokenize().
diff --git a/Lib/tokenize.py b/Lib/tokenize.py index 2b40e6f..a30791c 100644 --- a/Lib/tokenize.py +++ b/Lib/tokenize.py
@@ -182,7 +182,7 @@ for tok in iterable: toknum, tokval = tok[:2] - if toknum == NAME: + if toknum in (NAME, NUMBER): tokval += ' ' if toknum == INDENT: