From: Guido van Rossum Date: Thu, 30 Mar 2006 21:43:35 +0000 (+0000) Subject: Insert a safety space after numbers as well as names in untokenize(). X-Git-Tag: v2.5a0~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c259cc9c4c1c90efaeace2c9786786a5813cf950;p=thirdparty%2FPython%2Fcpython.git Insert a safety space after numbers as well as names in untokenize(). --- diff --git a/Lib/tokenize.py b/Lib/tokenize.py index 2b40e6f31bb4..a30791c2cdd7 100644 --- a/Lib/tokenize.py +++ b/Lib/tokenize.py @@ -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: