X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fnitos%2Fnitosshell.py;h=cf543f29d176bc207866709c88d345be530c3f1c;hb=06768bd605e5d47fadfc90a35c74e30f267226a5;hp=2636e6de0ff5eb687bd83c000fb1d32a3bc4ab7f;hpb=ecc85e0b923922cf7117d29b380f5284edb88f21;p=sfa.git diff --git a/sfa/nitos/nitosshell.py b/sfa/nitos/nitosshell.py index 2636e6de..cf543f29 100644 --- a/sfa/nitos/nitosshell.py +++ b/sfa/nitos/nitosshell.py @@ -1,9 +1,9 @@ import sys -import xmlrpclib import socket from urlparse import urlparse from sfa.util.sfalogging import logger +from sfa.util.py23 import xmlrpc_client class NitosShell: """ @@ -26,7 +26,7 @@ class NitosShell: # use the 'capability' auth mechanism for higher performance when the PLC db is local def __init__ ( self, config ) : url = config.SFA_NITOS_URL - self.proxy = xmlrpclib.Server(url, verbose = False, allow_none = True) + self.proxy = xmlrpc_client.ServerProxy(url, verbose = False, allow_none = True) def __getattr__(self, name): def func(*args, **kwds):