commit | 7ce734cd72bc32b5062f90f37fbe0cbc3c0e104e | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Fri May 31 14:13:04 2002 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Fri May 31 14:13:04 2002 +0000 |
tree | 567723f528cd14f51e7744b981935bbda03fe024 | |
parent | 05ab2e693cf5bed23e14058cf9eb458441769122 [diff] [blame] |
Use string methods where possible, and remove import string
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 @@ 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