From c533c986e8c2a009d3eb49a44c1b6de28fcd982c Mon Sep 17 00:00:00 2001 From: Mark Hammond Date: Mon, 10 May 2004 07:35:33 +0000 Subject: [PATCH] Fix [ 738973 ] urllib2 CacheFTPHandler doesn't work on multiple dirs, as implemented in patch [ 851736 ]. --- Lib/urllib2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.50.1