From Dan Kenigsberg <[email protected]>:

Dan Kenigsberg has uploaded a new change for review.

Change subject: py3: storage.persistent: take ifilter from six
......................................................................

py3: storage.persistent: take ifilter from six

Change-Id: Ia55de011c9b611f43248b9a3e3b0505b95905351
Signed-off-by: Dan Kenigsberg <[email protected]>
---
M lib/vdsm/storage/persistent.py
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/78/67778/1

diff --git a/lib/vdsm/storage/persistent.py b/lib/vdsm/storage/persistent.py
index 378a888..e7b55e3 100644
--- a/lib/vdsm/storage/persistent.py
+++ b/lib/vdsm/storage/persistent.py
@@ -32,7 +32,7 @@
 
 import threading
 from copy import deepcopy
-from itertools import ifilter
+from six.moves import filter
 
 SHA_CKSUM_TAG = "_SHA_CKSUM"
 
@@ -105,8 +105,8 @@
         del self._dict[key]
 
     def __iter__(self):
-        return ifilter(lambda k: k in self._validatorDict,
-                       self._dict.__iter__())
+        return filter(lambda k: k in self._validatorDict,
+                      self._dict.__iter__())
 
     def keys(self):
         return list(self.__iter__())


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia55de011c9b611f43248b9a3e3b0505b95905351
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