summaryrefslogtreecommitdiffstats
path: root/Lib/stringold.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-07-18 19:06:13 (GMT)
committerGeorg Brandl <georg@python.org>2008-07-18 19:06:13 (GMT)
commit74bbc79d10862727c9126f4f8d8868c021a389e4 (patch)
treeb023834db1dfc875eb379a2f1d270a02988c856c /Lib/stringold.py
parente2886fd3ca357c4cf7c1584375d9b9bb55d476b7 (diff)
downloadcpython-74bbc79d10862727c9126f4f8d8868c021a389e4.zip
cpython-74bbc79d10862727c9126f4f8d8868c021a389e4.tar.gz
cpython-74bbc79d10862727c9126f4f8d8868c021a389e4.tar.bz2
Replace all map(None, a) with list(a).
Diffstat (limited to 'Lib/stringold.py')
-rw-r--r--Lib/stringold.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/stringold.py b/Lib/stringold.py
index 7cbd7aa..ebfe383 100644
--- a/Lib/stringold.py
+++ b/Lib/stringold.py
@@ -391,7 +391,7 @@ def maketrans(fromstr, tostr):
raise ValueError, "maketrans arguments must have same length"
global _idmapL
if not _idmapL:
- _idmapL = map(None, _idmap)
+ _idmapL = list(_idmap)
L = _idmapL[:]
fromstr = map(ord, fromstr)
for i in range(len(fromstr)):