From 52a29bb757f617c1fd7942eeeee7f7e83f154f44 Mon Sep 17 00:00:00 2001 From: Mark Syms Date: Fri, 28 Oct 2022 18:56:11 +0100 Subject: [PATCH] CP-41033: further updates to XenAPIPlugin for Python3 Signed-off-by: Mark Syms --- scripts/examples/python/XenAPIPlugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/examples/python/XenAPIPlugin.py b/scripts/examples/python/XenAPIPlugin.py index 37ddbaf293f..603b54c9b04 100644 --- a/scripts/examples/python/XenAPIPlugin.py +++ b/scripts/examples/python/XenAPIPlugin.py @@ -4,7 +4,9 @@ from __future__ import print_function -import sys, xmlrpclib, XenAPI +import sys +import six.moves.xmlrpc_client as xmlrpclib +import XenAPI class Failure(Exception): """Provide compatibilty with plugins written against XenServer 5.5 API"""