Kaydet (Commit) c533c986 authored tarafından Mark Hammond's avatar Mark Hammond

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

implemented in patch [ 851736 ].
üst d2856008
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment