diff options
author | Guido van Rossum <guido@python.org> | 2006-03-30 21:43:35 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-03-30 21:43:35 +0000 |
commit | c259cc9c4c1c90efaeace2c9786786a5813cf950 (patch) | |
tree | ea3deedb2a0ec6a47fc5606786977f6b33eb8693 /Lib/tokenize.py | |
parent | 090f81588fc2298b3c967ddda3c3ffc592caf92a (diff) | |
download | cpython-git-c259cc9c4c1c90efaeace2c9786786a5813cf950.tar.gz |
Insert a safety space after numbers as well as names in untokenize().
Diffstat (limited to 'Lib/tokenize.py')
-rw-r--r-- | Lib/tokenize.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tokenize.py b/Lib/tokenize.py index 2b40e6f31b..a30791c2cd 100644 --- a/Lib/tokenize.py +++ b/Lib/tokenize.py @@ -182,7 +182,7 @@ def untokenize(iterable): for tok in iterable: toknum, tokval = tok[:2] - if toknum == NAME: + if toknum in (NAME, NUMBER): tokval += ' ' if toknum == INDENT: |