Skip to content

Commit ef5255b

Browse files
author
alexandre.vassalotti
committed
Renamed SocketServer to 'socketserver'.
Deprecated old name. git-svn-id: http://svn.python.org/projects/python/trunk@63129 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 3d6a9e8 commit ef5255b

4 files changed

Lines changed: 13 additions & 1 deletion

File tree

Lib/lib-old/SocketServer.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import sys
2+
from warnings import warnpy3k
3+
4+
warnpy3k("the SocketServer module has been renamed "
5+
"to 'socketserver' in Python 3.0", stacklevel=2)
6+
7+
import socketserver
8+
sys.modules[__name__] = socketserver
File renamed without changes.

Lib/test/test_py3kwarn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ def dumbo(where, names, args): pass
182182

183183
class TestStdlibRenames(unittest.TestCase):
184184

185-
renames = {'copy_reg': 'copyreg', 'Queue': 'queue'}
185+
renames = {'copy_reg': 'copyreg', 'Queue': 'queue',
186+
'SocketServer': 'socketserver'}
186187

187188
def check_rename(self, module_name, new_module_name):
188189
"""Make sure that:

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ Extension Modules
2626
Library
2727
-------
2828

29+
- The SocketServer module has been renamed 'socketserver'. The old
30+
name is now deprecated.
31+
2932
- The imageop module has been deprecated for removal in Python 3.0.
3033

3134
- #2250: Exceptions raised during evaluation of names in rlcompleter's

0 commit comments

Comments
 (0)