diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-05-31 14:13:04 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-05-31 14:13:04 (GMT) |
commit | 7ce734cd72bc32b5062f90f37fbe0cbc3c0e104e (patch) | |
tree | 567723f528cd14f51e7744b981935bbda03fe024 /Lib/tabnanny.py | |
parent | 05ab2e693cf5bed23e14058cf9eb458441769122 (diff) | |
download | cpython-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-x | Lib/tabnanny.py | 3 |
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 |