mirror of
https://github.com/python/cpython.git
synced 2025-09-15 13:16:12 +00:00
Fix [ 738973 ] urllib2 CacheFTPHandler doesn't work on multiple dirs, as
implemented in patch [ 851736 ].
This commit is contained in:
parent
d285600883
commit
c533c986e8
1 changed files with 1 additions and 1 deletions
|
@ -1168,7 +1168,7 @@ class CacheFTPHandler(FTPHandler):
|
||||||
self.max_conns = m
|
self.max_conns = m
|
||||||
|
|
||||||
def connect_ftp(self, user, passwd, host, port, dirs):
|
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:
|
if key in self.cache:
|
||||||
self.timeout[key] = time.time() + self.delay
|
self.timeout[key] = time.time() + self.delay
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue