hooks/syncschema.py
changeset 10663 54b8a1f249fb
parent 10646 45671fb330f5
child 10666 7f6b5f023884
--- a/hooks/syncschema.py	Tue Sep 15 16:15:03 2015 +0200
+++ b/hooks/syncschema.py	Tue Oct 13 15:09:22 2015 +0200
@@ -208,7 +208,7 @@
             repo.set_schema(repo.schema)
             # CWUser class might have changed, update current session users
             cwuser_cls = self.cnx.vreg['etypes'].etype_class('CWUser')
-            for session in repo._sessions.itervalues():
+            for session in repo._sessions.values():
                 session.user.__class__ = cwuser_cls
         except Exception:
             self.critical('error while setting schema', exc_info=True)