diff options
| author | Nick Mathewson <nickm@torproject.org> | 2004-10-05 15:25:29 +0000 |
|---|---|---|
| committer | Nick Mathewson <nickm@torproject.org> | 2004-10-05 15:25:29 +0000 |
| commit | 2bf66b94fc660136f71833e31b3b18993409662d (patch) | |
| tree | e67c286701dea13fabf3e171c92cbf4e384f934a | |
| parent | c97e4d8fed83fa1cf22590032be801eb81e6649b (diff) | |
| download | anonbib-2bf66b94fc660136f71833e31b3b18993409662d.tar.gz | |
Fix variable-capture bug in updateCache.py
svn:r114
| -rw-r--r-- | updateCache.py | 5 |
1 files changed, 3 insertions, 2 deletions
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" |
