summaryrefslogtreecommitdiff
path: root/Lib/stringold.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-07-18 19:06:13 +0000
committerGeorg Brandl <georg@python.org>2008-07-18 19:06:13 +0000
commit42f84ca601f41f900aa20b910b0dc7929325f280 (patch)
tree2fd6a0e6c26312bf7461318f13267a649467de46 /Lib/stringold.py
parentda3772cb06821269ed367f1e5c5e32e60574bc65 (diff)
downloadcpython-42f84ca601f41f900aa20b910b0dc7929325f280.tar.gz
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 7cbd7aaf6b..ebfe38313a 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)):