From: Brett Cannon Date: Thu, 8 May 2008 19:52:45 +0000 (+0000) Subject: Deprecate stringold for removal in 3.0. X-Git-Tag: v2.6b1~576 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6071cc8fb027d4b7163742d578a1b8666afe1d1c;p=thirdparty%2FPython%2Fcpython.git Deprecate stringold for removal in 3.0. --- diff --git a/Lib/stringold.py b/Lib/stringold.py index 213a04cce7b6..7cbd7aaf6b00 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' diff --git a/Misc/NEWS b/Misc/NEWS index 770676d228a7..3f2ceaaa6ef8 100644 --- 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.