From Dan Kenigsberg <[email protected]>:

Dan Kenigsberg has uploaded a new change for review.

Change subject: py3: tests: jsonRpcHelper: minor modernization
......................................................................

py3: tests: jsonRpcHelper: minor modernization

Take xmlrpclib and httplib from six.

Change-Id: Ic4f282f562cfd7645f3a1ae738ca6c3ded95decf
Signed-off-by: Dan Kenigsberg <[email protected]>
---
M tests/integration/jsonRpcHelper.py
1 file changed, 4 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/72/67772/1

diff --git a/tests/integration/jsonRpcHelper.py 
b/tests/integration/jsonRpcHelper.py
index 02d61a1..4739f31 100644
--- a/tests/integration/jsonRpcHelper.py
+++ b/tests/integration/jsonRpcHelper.py
@@ -17,14 +17,15 @@
 #
 # Refer to the README and COPYING files for full details of the license
 #
-import httplib
 import logging
 import os.path
 import threading
 from collections import defaultdict
 
+import six.moves.http_client
+
 import API
-from xmlrpclib import Transport, dumps, Fault
+from six.moves.xmlrpc_client import Transport, dumps, Fault
 from contextlib import contextmanager
 from itertools import product
 from vdsm.rpc.bindingxmlrpc import BindingXMLRPC, XmlDetector
@@ -209,5 +210,5 @@
         def connect(self):
             self.sock = socket
 
-        connection = httplib.HTTPConnection
+        connection = six.moves.http_client.HTTPConnection
         connection.connect = connect


-- 
To view, visit https://gerrit.ovirt.org/67772
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic4f282f562cfd7645f3a1ae738ca6c3ded95decf
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Dan Kenigsberg <[email protected]>
_______________________________________________
vdsm-patches mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to