Commit af47660f authored by Mike Hibler's avatar Mike Hibler

Fix from Dave for python 2.5

parent 46eceecc
#!/usr/local/bin/python
#
# EMULAB-COPYRIGHT
# Copyright (c) 2005-2007 University of Utah and the Flux Group.
# Copyright (c) 2005-2008 University of Utah and the Flux Group.
# All rights reserved.
#
import sys
......@@ -151,7 +151,11 @@ class MyServer(SSL.ForkingSSLServer, SimpleXMLRPCDispatcher):
ctx.set_allow_unknown_ca(0)
#ctx.set_info_callback()
SimpleXMLRPCDispatcher.__init__(self)
dargs = (self,)
if sys.version_info[0] >= 2 and sys.version_info[1] >= 5:
dargs = (self,False,None)
pass
SimpleXMLRPCDispatcher.__init__(*dargs)
SSL.SSLServer.__init__(self, (ADDR, PORT),
MyXMLRPCRequestHandler, ctx)
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment