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

View file

@ -182,7 +182,7 @@ def untokenize(iterable):
for tok in iterable: for tok in iterable:
toknum, tokval = tok[:2] toknum, tokval = tok[:2]
if toknum == NAME: if toknum in (NAME, NUMBER):
tokval += ' ' tokval += ' '
if toknum == INDENT: if toknum == INDENT: