Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
fb9ce65a
Commit
fb9ce65a
authored
May 12, 2008
by
Alexandre Vassalotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed SocketServer to 'socketserver'.
Deprecated old name.
parent
ed02e51a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
1 deletion
+13
-1
Lib/lib-old/SocketServer.py
Lib/lib-old/SocketServer.py
+8
-0
Lib/socketserver.py
Lib/socketserver.py
+0
-0
Lib/test/test_py3kwarn.py
Lib/test/test_py3kwarn.py
+2
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/lib-old/SocketServer.py
0 → 100644
View file @
fb9ce65a
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
Lib/
SocketS
erver.py
→
Lib/
sockets
erver.py
View file @
fb9ce65a
File moved
Lib/test/test_py3kwarn.py
View file @
fb9ce65a
...
...
@@ -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:
...
...
Misc/NEWS
View file @
fb9ce65a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment