Commit c259cc9c authored by Guido van Rossum's avatar Guido van Rossum

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

parent 090f8158
...@@ -182,7 +182,7 @@ def untokenize(iterable): ...@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment