summaryrefslogtreecommitdiffstats
path: root/Lib/stringold.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/stringold.py')
-rw-r--r--Lib/stringold.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/stringold.py b/Lib/stringold.py
index 213a04c..ebfe383 100644
--- a/Lib/stringold.py
+++ b/Lib/stringold.py
@@ -18,6 +18,9 @@ hexdigits -- a string containing all characters considered hexadecimal digits
octdigits -- a string containing all characters considered octal digits
"""
+from warnings import warnpy3k
+warnpy3k("the stringold module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
# Some strings for ctype-style character classification
whitespace = ' \t\n\r\v\f'
@@ -388,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)):