commit | c533c986e8c2a009d3eb49a44c1b6de28fcd982c | [log] [tgz] |
---|---|---|
author | Mark Hammond <mhammond@skippinet.com.au> | Mon May 10 07:35:33 2004 +0000 |
committer | Mark Hammond <mhammond@skippinet.com.au> | Mon May 10 07:35:33 2004 +0000 |
tree | a02009a42c039fcd3869ae293040d2456ed9d4a1 | |
parent | d2856008839aa2dd06893701db6be2333eef5f24 [diff] |
Fix [ 738973 ] urllib2 CacheFTPHandler doesn't work on multiple dirs, as implemented in patch [ 851736 ].
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 1984cf2..773cd7d 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py
@@ -1168,7 +1168,7 @@ 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: