Fix [ 738973 ] urllib2 CacheFTPHandler doesn't work on multiple dirs, as

implemented in patch [ 851736 ].
This commit is contained in:
Mark Hammond 2004-05-10 07:35:33 +00:00
parent d285600883
commit c533c986e8

View file

@ -1168,7 +1168,7 @@ class CacheFTPHandler(FTPHandler):
self.max_conns = m
def connect_ftp(self, user, passwd, host, port, dirs):
key = user, passwd, host, port
key = user, host, port, '/'.join(dirs)
if key in self.cache:
self.timeout[key] = time.time() + self.delay
else: