summaryrefslogtreecommitdiffstats
path: root/Lib/tabnanny.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-12-04 10:39:14 (GMT)
committerGeorg Brandl <georg@python.org>2010-12-04 10:39:14 (GMT)
commitcbd2ab1311120efa37e6dd8008a234235bf97b62 (patch)
treeaa1fbd5bf7fc5d236956c4b73cbbd407b9612349 /Lib/tabnanny.py
parent8334fd9285a8e9f0864b0453ae738fe3f6893b21 (diff)
downloadcpython-cbd2ab1311120efa37e6dd8008a234235bf97b62.zip
cpython-cbd2ab1311120efa37e6dd8008a234235bf97b62.tar.gz
cpython-cbd2ab1311120efa37e6dd8008a234235bf97b62.tar.bz2
#1513299: cleanup some map() uses where a comprehension works better.
Diffstat (limited to 'Lib/tabnanny.py')
-rwxr-xr-xLib/tabnanny.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tabnanny.py b/Lib/tabnanny.py
index a4d4ef0..46f8163 100755
--- a/Lib/tabnanny.py
+++ b/Lib/tabnanny.py
@@ -264,7 +264,7 @@ class Whitespace:
return a
def format_witnesses(w):
- firsts = map(lambda tup: str(tup[0]), w)
+ firsts = (str(tup[0]) for tup in w)
prefix = "at tab size"
if len(w) > 1:
prefix = prefix + "s"