[issue1000] Patch to rename *Server modules to lower-case
Brett Cannon [EMAIL PROTECTED] added the comment: SocketServer is the only *Server module who name is being directly lowercased. All the rest are ending up in various packages with a totally different name. -- assignee: - collinwinter nosy: +brett.cannon resolution: - rejected status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1000 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1000] Patch to rename *Server modules to lower-case
Changes by Collin Winter: -- components: +2to3 (2.x to 3.x conversion tool) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1000 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1000] Patch to rename *Server modules to lower-case
Changes by Collin Winter: -- nosy: +collinwinter __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1000 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1000] Patch to rename *Server modules to lower-case
Changes by Martin v. Löwis: -- keywords: +patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1000 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1000] Patch to rename *Server modules to lower-case
Changes by Sean Reifschneider: -- priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1000 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1000] Patch to rename *Server modules to lower-case
New submission from Jason Prado: Here's a patcher for the 2to3 fixer. After I add this ticket I'll try to add another file for the py3k/Lib directory. -- components: Library (Lib) files: fixer-server-imports.patch messages: 55188 nosy: jasonpjason severity: normal status: open title: Patch to rename *Server modules to lower-case versions: Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1000 __Index: fixes/fix_imports.py === --- fixes/fix_imports.py(revision 57338) +++ fixes/fix_imports.py(working copy) @@ -11,9 +11,35 @@ from fixes import basefix from fixes.util import Name, attr_chain, any, set -MAPPING = {StringIO: (io, [StringIO]), - cStringIO: (io, [StringIO]), - md5: (hashlib, [md5])} +MAPPING = {StringIO: (io, [StringIO]), + cStringIO: (io, [StringIO]), + md5: (hashlib, [md5]), + BaseHTTPServer:(base_http_server, + [HTTPServer, BaseHTTPRequestHandler]), + SimpleHTTPServer: (simple_http_server, + [SimpleHTTPRequestHandler]), + CGIHTTPServer: (cgi_http_server, + [CGIHTTPRequestHandler]), + DocXMLRPCServer: (doc_xmlrpc_server, + [DocXMLRPCServer, + DocCGIXMLRPCRequestHandler, + DocXMLRPCRequestHandler]), + SimpleXMLRPCServer:(simple_xmlrpc_server, + [SimpleXMLRPCServer, + CGIXMLRPCRequestHandler, + SimpleXMLRPCRequestHandler]), + SocketServer: (socket_server, + [TCPServer, UDPServer, + ForkingUDPServer,ForkingTCPServer, + ThreadingUDPServer, ThreadingTCPServer, + BaseRequestHandler, + StreamRequestHandler, + DatagramRequestHandler, ThreadingMixIn, + ForkingMixIn, UnixStreamServer, + UnixDatagramServer, + ThreadingUnixStreamServer, + ThreadingUnixDatagramServer]), + } def alternates(members): ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com