summaryrefslogtreecommitdiffstats
path: root/Lib/SimpleXMLRPCServer.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-03-10 14:41:48 (GMT)
committerCollin Winter <collinw@gmail.com>2007-03-10 14:41:48 (GMT)
commitae04106a0ebf271b4c4f3ce04c1ee84cab9b43fe (patch)
tree1fc1a6e52d138459fc058cff6b4ba5b13c779bda /Lib/SimpleXMLRPCServer.py
parent3351aa7dd509c72335fd37a7eae79e62ba48f773 (diff)
downloadcpython-ae04106a0ebf271b4c4f3ce04c1ee84cab9b43fe.zip
cpython-ae04106a0ebf271b4c4f3ce04c1ee84cab9b43fe.tar.gz
cpython-ae04106a0ebf271b4c4f3ce04c1ee84cab9b43fe.tar.bz2
Patch #1599845: Add an option to disable the implicit calls to server_bind() and server_activate() in the constructors for TCPServer, SimpleXMLRPCServer and DocXMLRPCServer.
Diffstat (limited to 'Lib/SimpleXMLRPCServer.py')
-rw-r--r--Lib/SimpleXMLRPCServer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/SimpleXMLRPCServer.py b/Lib/SimpleXMLRPCServer.py
index 53ad9c5..8c85f80 100644
--- a/Lib/SimpleXMLRPCServer.py
+++ b/Lib/SimpleXMLRPCServer.py
@@ -518,11 +518,11 @@ class SimpleXMLRPCServer(SocketServer.TCPServer,
allow_reuse_address = True
def __init__(self, addr, requestHandler=SimpleXMLRPCRequestHandler,
- logRequests=True, allow_none=False, encoding=None):
+ logRequests=True, allow_none=False, encoding=None, bind_and_activate=True):
self.logRequests = logRequests
SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding)
- SocketServer.TCPServer.__init__(self, addr, requestHandler)
+ 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