[devtools] 'dict_values' object does not support indexing
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 01 Oct 2015 11:43:01 +0200
changeset 10747 cf711d1c951f
parent 10746 407385314c0d
child 10748 a704babdc840
[devtools] 'dict_values' object does not support indexing
devtools/repotest.py
--- a/devtools/repotest.py	Thu Oct 01 11:42:29 2015 +0200
+++ b/devtools/repotest.py	Thu Oct 01 11:43:01 2015 +0200
@@ -197,7 +197,7 @@
 
     def setUp(self):
         self.o = self.repo.querier
-        self.session = self.repo._sessions.values()[0]
+        self.session = next(iter(self.repo._sessions.values()))
         self.ueid = self.session.user.eid
         assert self.ueid != -1
         self.repo._type_source_cache = {} # clear cache