summaryrefslogtreecommitdiff
path: root/Lib/tabnanny.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-05-31 14:13:04 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2002-05-31 14:13:04 +0000
commitacaada7120146e208d48128b4e8bf660e0f5e9a2 (patch)
treee889b57f7ae8f25734907b6ce16a2ab58e5946e2 /Lib/tabnanny.py
parentbbc3feb43305d6ef87bec275d3f5456ede1f8f87 (diff)
downloadcpython-acaada7120146e208d48128b4e8bf660e0f5e9a2.tar.gz
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 c9a1ccda49..251df27567 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