[towards py3k] fix bug introduced by 0bb18407c053
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Sat, 16 Feb 2013 21:46:24 +0100
changeset 8699 864ffd247d70
parent 8698 b2443e266661
child 8700 9064df1c2f99
[towards py3k] fix bug introduced by 0bb18407c053
server/repository.py
--- a/server/repository.py	Tue Feb 21 18:23:23 2012 +0100
+++ b/server/repository.py	Sat Feb 16 21:46:24 2013 +0100
@@ -962,7 +962,7 @@
 
     def close_sessions(self):
         """close every opened sessions"""
-        for sessionid in self._sessions:
+        for sessionid in list(self._sessions):
             try:
                 self.close(sessionid, checkshuttingdown=False)
             except Exception: # XXX BaseException?