Renamed the SocketServer module to 'socketserver'.

Merged revisions 63132 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r63132 | alexandre.vassalotti | 2008-05-11 22:11:22 -0400 (Sun, 11 May 2008) | 4 lines

  Updated all import statements to use the new socketserver module name.
  Renamed socketserver module in its own documentation.
  Renamed documentation references.
........
This commit is contained in:
Alexandre Vassalotti 2008-05-12 02:31:37 +00:00
parent 6f1e619b41
commit ce261952e6
16 changed files with 63 additions and 64 deletions

View file

@ -100,7 +100,7 @@ def export_add(self, x, y):
import xmlrpclib
from xmlrpclib import Fault
import SocketServer
import socketserver
import BaseHTTPServer
import sys
import os
@ -494,7 +494,7 @@ def log_request(self, code='-', size='-'):
if self.server.logRequests:
BaseHTTPServer.BaseHTTPRequestHandler.log_request(self, code, size)
class SimpleXMLRPCServer(SocketServer.TCPServer,
class SimpleXMLRPCServer(socketserver.TCPServer,
SimpleXMLRPCDispatcher):
"""Simple XML-RPC server.
@ -518,7 +518,7 @@ def __init__(self, addr, requestHandler=SimpleXMLRPCRequestHandler,
self.logRequests = logRequests
SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding)
SocketServer.TCPServer.__init__(self, addr, requestHandler, bind_and_activate)
socketserver.TCPServer.__init__(self, addr, requestHandler, bind_and_activate)
# [Bug #1222790] If possible, set close-on-exec flag; if a
# method spawns a subprocess, the subprocess shouldn't have