hgext/remotefilelog/connectionpool.py
changeset 43104 74802979dd9d
parent 43077 687b865b95ad
child 43115 4aa72cdf616f
--- a/hgext/remotefilelog/connectionpool.py	Sun Oct 06 17:45:05 2019 -0400
+++ b/hgext/remotefilelog/connectionpool.py	Sun Oct 06 17:59:15 2019 -0400
@@ -10,6 +10,7 @@
 from mercurial import (
     extensions,
     hg,
+    pycompat,
     sshpeer,
     util,
 )
@@ -59,7 +60,7 @@
         return conn
 
     def close(self):
-        for pathpool in self._pool.itervalues():
+        for pathpool in pycompat.itervalues(self._pool):
             for conn in pathpool:
                 conn.close()
             del pathpool[:]