From: Alexandre Vassalotti Date: Mon, 12 May 2008 01:37:10 +0000 (+0000) Subject: Renamed SocketServer to 'socketserver'. X-Git-Tag: v2.6b1~470 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb9ce65a91d674b1a80174c70a025aee83783388;p=thirdparty%2FPython%2Fcpython.git Renamed SocketServer to 'socketserver'. Deprecated old name. --- diff --git a/Lib/lib-old/SocketServer.py b/Lib/lib-old/SocketServer.py new file mode 100644 index 000000000000..98758946402e --- /dev/null +++ b/Lib/lib-old/SocketServer.py @@ -0,0 +1,8 @@ +import sys +from warnings import warnpy3k + +warnpy3k("the SocketServer module has been renamed " + "to 'socketserver' in Python 3.0", stacklevel=2) + +import socketserver +sys.modules[__name__] = socketserver diff --git a/Lib/SocketServer.py b/Lib/socketserver.py similarity index 100% rename from Lib/SocketServer.py rename to Lib/socketserver.py diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index a4c24d418201..ef4d0b9d921e 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -182,7 +182,8 @@ class TestStdlibRemovals(unittest.TestCase): class TestStdlibRenames(unittest.TestCase): - renames = {'copy_reg': 'copyreg', 'Queue': 'queue'} + renames = {'copy_reg': 'copyreg', 'Queue': 'queue', + 'SocketServer': 'socketserver'} def check_rename(self, module_name, new_module_name): """Make sure that: diff --git a/Misc/NEWS b/Misc/NEWS index 7384c9dcfa38..a15ebb48350a 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -26,6 +26,9 @@ Extension Modules Library ------- +- The SocketServer module has been renamed 'socketserver'. The old + name is now deprecated. + - The imageop module has been deprecated for removal in Python 3.0. - #2250: Exceptions raised during evaluation of names in rlcompleter's