From acaada7120146e208d48128b4e8bf660e0f5e9a2 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 31 May 2002 14:13:04 +0000 Subject: Use string methods where possible, and remove import string --- Lib/tabnanny.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Lib/tabnanny.py') 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 -- cgit v1.2.1