From 2bf66b94fc660136f71833e31b3b18993409662d Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 5 Oct 2004 15:25:29 +0000 Subject: Fix variable-capture bug in updateCache.py svn:r114 --- updateCache.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'updateCache.py') diff --git a/updateCache.py b/updateCache.py index ec41d0e..918cfd4 100644 --- a/updateCache.py +++ b/updateCache.py @@ -35,8 +35,9 @@ def getCacheFname(key, ftype, section): section, "%s.%s"%(key,ftype)) -def downloadFile(key, ftype, section, url, - timeout=config.DOWNLOAD_CONNECT_TIMEOUT): +def downloadFile(key, ftype, section, url,timeout=None): + if timeout is None: + timeout = config.DOWNLOAD_CONNECT_TIMEOUT fname = getCacheFname(key, ftype, section) fnameTmp = fname+".tmp" fnameURL = fname+".url" -- cgit v1.2.3-70-g09d2