diff --git a/Lib/urllib2.py b/Lib/urllib2.py index c64b7c10ec0c80b573cedf6af92e8cfad4e16ae4..ace335312c16ad75c6ddbc07b987c3a2d55654ca 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -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]