]> granicus.if.org Git - python/commitdiff
iteritems() should not have been used for self.timeout which changes during the loop.
authorRaymond Hettinger <python@rcn.com>
Fri, 23 May 2003 08:51:51 +0000 (08:51 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 23 May 2003 08:51:51 +0000 (08:51 +0000)
Lib/urllib2.py

index c64b7c10ec0c80b573cedf6af92e8cfad4e16ae4..ace335312c16ad75c6ddbc07b987c3a2d55654ca 100644 (file)
@@ -1012,7 +1012,7 @@ class CacheFTPHandler(FTPHandler):
         # first check for old ones
         t = time.time()
         if self.soonest <= t:
-            for k, v in self.timeout.iteritems():
+            for k, v in self.timeout.items():
                 if v < t:
                     self.cache[k].close()
                     del self.cache[k]