Insert a safety space after numbers as well as names in untokenize().

This commit is contained in:
Guido van Rossum 2006-03-30 21:43:35 +00:00
parent 090f81588f
commit c259cc9c4c
1 changed files with 1 additions and 1 deletions

View File

@ -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: