summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xLib/tabnanny.py4
-rwxr-xr-xTools/idle/tabnanny.py4
-rwxr-xr-xTools/scripts/tabnanny.py4
3 files changed, 9 insertions, 3 deletions
diff --git a/Lib/tabnanny.py b/Lib/tabnanny.py
index f68ed2d..c5adfb5 100755
--- a/Lib/tabnanny.py
+++ b/Lib/tabnanny.py
@@ -4,10 +4,11 @@
# Released to the public domain, by Tim Peters, 15 April 1998.
-__version__ = "5"
+__version__ = "6"
import os
import sys
+import string
import getopt
import tokenize
@@ -88,6 +89,7 @@ def check(file):
print "offending line:", `line`
print nag.get_msg()
else:
+ if ' ' in file: file = '"' + file + '"'
if filename_only: print file
else: print file, badline, `line`
return
diff --git a/Tools/idle/tabnanny.py b/Tools/idle/tabnanny.py
index f68ed2d..c5adfb5 100755
--- a/Tools/idle/tabnanny.py
+++ b/Tools/idle/tabnanny.py
@@ -4,10 +4,11 @@
# Released to the public domain, by Tim Peters, 15 April 1998.
-__version__ = "5"
+__version__ = "6"
import os
import sys
+import string
import getopt
import tokenize
@@ -88,6 +89,7 @@ def check(file):
print "offending line:", `line`
print nag.get_msg()
else:
+ if ' ' in file: file = '"' + file + '"'
if filename_only: print file
else: print file, badline, `line`
return
diff --git a/Tools/scripts/tabnanny.py b/Tools/scripts/tabnanny.py
index f68ed2d..c5adfb5 100755
--- a/Tools/scripts/tabnanny.py
+++ b/Tools/scripts/tabnanny.py
@@ -4,10 +4,11 @@
# Released to the public domain, by Tim Peters, 15 April 1998.
-__version__ = "5"
+__version__ = "6"
import os
import sys
+import string
import getopt
import tokenize
@@ -88,6 +89,7 @@ def check(file):
print "offending line:", `line`
print nag.get_msg()
else:
+ if ' ' in file: file = '"' + file + '"'
if filename_only: print file
else: print file, badline, `line`
return