gnunetbib

Bibliography (BibTeX, based on AnonBib)
Log | Files | Refs | README | LICENSE

commit e21539742fec6fc59fbdc7d43a6db86ce00b0dda
parent c5f9122a46b9c23593899f40dc915db888037c2d
Author: Nick Mathewson <nickm@torproject.org>
Date:   Tue,  5 Oct 2004 15:25:29 +0000

Fix variable-capture bug in updateCache.py


svn:r114

Diffstat:
MupdateCache.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 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"