From: Mark Hammond Date: Mon, 10 May 2004 07:35:33 +0000 (+0000) Subject: Fix [ 738973 ] urllib2 CacheFTPHandler doesn't work on multiple dirs, as X-Git-Tag: v2.4a1~414 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c533c986e8c2a009d3eb49a44c1b6de28fcd982c;p=python 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 1984cf294b..773cd7de82 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -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: