mirror of
https://github.com/python/cpython.git
synced 2025-11-20 19:06:50 +00:00
Insert a safety space after numbers as well as names in untokenize().
This commit is contained in:
parent
090f81588f
commit
c259cc9c4c
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue