diff options
author | Georg Brandl <georg@python.org> | 2010-12-04 10:39:14 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-12-04 10:39:14 (GMT) |
commit | cbd2ab1311120efa37e6dd8008a234235bf97b62 (patch) | |
tree | aa1fbd5bf7fc5d236956c4b73cbbd407b9612349 /Lib/test/test_long.py | |
parent | 8334fd9285a8e9f0864b0453ae738fe3f6893b21 (diff) | |
download | cpython-cbd2ab1311120efa37e6dd8008a234235bf97b62.zip cpython-cbd2ab1311120efa37e6dd8008a234235bf97b62.tar.gz cpython-cbd2ab1311120efa37e6dd8008a234235bf97b62.tar.bz2 |
#1513299: cleanup some map() uses where a comprehension works better.
Diffstat (limited to 'Lib/test/test_long.py')
-rw-r--r-- | Lib/test/test_long.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index 133702e..12197ee 100644 --- a/Lib/test/test_long.py +++ b/Lib/test/test_long.py @@ -276,7 +276,7 @@ class LongTest(unittest.TestCase): digits = digits or [0] return '-'[:sign] + \ {2: '0b', 8: '0o', 10: '', 16: '0x'}[base] + \ - "".join(map(lambda i: "0123456789abcdef"[i], digits)) + "".join("0123456789abcdef"[i] for i in digits) def check_format_1(self, x): for base, mapper in (8, oct), (10, repr), (16, hex): |