]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Deprecate stringold for removal in 3.0.
authorBrett Cannon <bcannon@gmail.com>
Thu, 8 May 2008 19:52:45 +0000 (19:52 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 8 May 2008 19:52:45 +0000 (19:52 +0000)
Lib/stringold.py
Misc/NEWS

index 213a04cce7b6df693d3519a74e6f4aaadf05361c..7cbd7aaf6b00c40d04d6ec4864ec430c2d1cd65e 100644 (file)
@@ -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'
index 770676d228a71b4a86d58eab0e1a79bd12a7a39f..3f2ceaaa6ef80dfd1853d3af87392e9a8489f8e9 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -18,7 +18,9 @@ Extension Modules
 Library
 -------
 
-- The mutex module has bene deprecated for removal in Python 3.0.
+- The stringold module has been deprecated for removal in Python 3.0.
+
+- The mutex module has been deprecated for removal in Python 3.0.
 
 - The imputil module has been deprecated for removal in Python 3.0.