summaryrefslogtreecommitdiffstats
path: root/Lib/BaseHTTPServer.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-24 18:31:28 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-24 18:31:28 (GMT)
commite152a77d96df7479ce798ebd5baee7d41af99db3 (patch)
tree3d13fa9679d1ae46e5dec0af2ddf09f6edd45561 /Lib/BaseHTTPServer.py
parent6acb075f03ec5ecb8d89bc56fae99dc8c5a510ab (diff)
downloadcpython-e152a77d96df7479ce798ebd5baee7d41af99db3.zip
cpython-e152a77d96df7479ce798ebd5baee7d41af99db3.tar.gz
cpython-e152a77d96df7479ce798ebd5baee7d41af99db3.tar.bz2
socketserver renaming reversal part 3: move the module into the right
place and fix all references to it. Closes #2926.
Diffstat (limited to 'Lib/BaseHTTPServer.py')
-rw-r--r--Lib/BaseHTTPServer.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/BaseHTTPServer.py b/Lib/BaseHTTPServer.py
index cc244a7..5f2d558 100644
--- a/Lib/BaseHTTPServer.py
+++ b/Lib/BaseHTTPServer.py
@@ -74,7 +74,7 @@ import sys
import time
import socket # For gethostbyaddr()
import mimetools
-import socketserver
+import SocketServer
# Default error message template
DEFAULT_ERROR_MESSAGE = """\
@@ -94,19 +94,19 @@ DEFAULT_ERROR_CONTENT_TYPE = "text/html"
def _quote_html(html):
return html.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")
-class HTTPServer(socketserver.TCPServer):
+class HTTPServer(SocketServer.TCPServer):
allow_reuse_address = 1 # Seems to make sense in testing environment
def server_bind(self):
"""Override server_bind to store the server name."""
- socketserver.TCPServer.server_bind(self)
+ SocketServer.TCPServer.server_bind(self)
host, port = self.socket.getsockname()[:2]
self.server_name = socket.getfqdn(host)
self.server_port = port
-class BaseHTTPRequestHandler(socketserver.StreamRequestHandler):
+class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler):
"""HTTP request handler base class.