summaryrefslogtreecommitdiffstats
path: root/Lib/tabnanny.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-05-31 14:13:04 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-05-31 14:13:04 (GMT)
commit7ce734cd72bc32b5062f90f37fbe0cbc3c0e104e (patch)
tree567723f528cd14f51e7744b981935bbda03fe024 /Lib/tabnanny.py
parent05ab2e693cf5bed23e14058cf9eb458441769122 (diff)
downloadcpython-7ce734cd72bc32b5062f90f37fbe0cbc3c0e104e.zip
cpython-7ce734cd72bc32b5062f90f37fbe0cbc3c0e104e.tar.gz
cpython-7ce734cd72bc32b5062f90f37fbe0cbc3c0e104e.tar.bz2
Use string methods where possible, and remove import string
Diffstat (limited to 'Lib/tabnanny.py')
-rwxr-xr-xLib/tabnanny.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/tabnanny.py b/Lib/tabnanny.py
index c9a1ccd..251df27 100755
--- a/Lib/tabnanny.py
+++ b/Lib/tabnanny.py
@@ -261,12 +261,11 @@ class Whitespace:
return a
def format_witnesses(w):
- import string
firsts = map(lambda tup: str(tup[0]), w)
prefix = "at tab size"
if len(w) > 1:
prefix = prefix + "s"
- return prefix + " " + string.join(firsts, ', ')
+ return prefix + " " + ', '.join(firsts)
def process_tokens(tokens):
INDENT = tokenize.INDENT