Change in vdsm[master]: lib: executor: port executor.py to python3

fromani at redhat.com fromani at redhat.com
Thu Mar 10 08:49:41 UTC 2016


Francesco Romani has uploaded a new change for review.

Change subject: lib: executor: port executor.py to python3
......................................................................

lib: executor: port executor.py to python3

This patch fixes executor.py to work with python3
using 'six', and enable its test to run on python3.

Change-Id: I3b768b4a7f297f59376e005b4abab3a328bf4b50
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
M lib/vdsm/executor.py
M tests/Makefile.am
2 files changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/76/54576/1

diff --git a/lib/vdsm/executor.py b/lib/vdsm/executor.py
index 0a077fe..540d65c 100644
--- a/lib/vdsm/executor.py
+++ b/lib/vdsm/executor.py
@@ -27,6 +27,8 @@
 import logging
 import threading
 
+from six.moves import xrange
+
 from . import concurrent
 from . import pthread
 
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 4aabc4c..7d8d90c 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -34,6 +34,7 @@
 	cpuProfileTests.py \
 	sslTests.py \
 	domainDescriptorTests.py \
+	executorTests.py \
 	passwordsTests.py \
 	permutationTests.py \
 	pthreadTests.py \


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3b768b4a7f297f59376e005b4abab3a328bf4b50
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani at redhat.com>


More information about the vdsm-patches mailing list