mirror of https://github.com/python/cpython
Insert a safety space after numbers as well as names in untokenize().
This commit is contained in:
parent
090f81588f
commit
c259cc9c4c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue