diff --git a/tools/xmlrpc_test.py b/tools/xmlrpc_test.py index ee23f71de9..ab3e2181c7 100755 --- a/tools/xmlrpc_test.py +++ b/tools/xmlrpc_test.py @@ -20,14 +20,14 @@ ############################################################################ import sys -import xmlrpclib +import xmlrpc.client -if __name__ == '__main__': +if __name__ == "__main__": if len(sys.argv) != 2: - print 'Usage: %s ' % sys.argv[0] + print("Usage: %s " % sys.argv[0]) quit(1) - server_url = 'http://%s/device' % sys.argv[1] - server = xmlrpclib.ServerProxy(server_url) + server_url = "http://%s/device" % sys.argv[1] + server = xmlrpc.client.ServerProxy(server_url) result = server.get_device_stats("username", "password", 0) - print result + print(result)