aboutsummaryrefslogtreecommitdiffstats
path: root/rank.py
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-06-28 02:38:33 +0000
committerNick Mathewson <nickm@torproject.org>2008-06-28 02:38:33 +0000
commit7e5e2fc5dbff029a0420fb73f5038047d9f7c1c0 (patch)
tree2bceaa1a57d66332b23f658891abcd2be44da460 /rank.py
parent4e069eb0cceb83e932f86374cd46a549b56a7766 (diff)
downloadanonbib-7e5e2fc5dbff029a0420fb73f5038047d9f7c1c0.tar.gz
Make cache-file umask configurable.
svn:r286
Diffstat (limited to 'rank.py')
-rw-r--r--rank.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rank.py b/rank.py
index 16e1d8f..76ca181 100644
--- a/rank.py
+++ b/rank.py
@@ -125,6 +125,8 @@ if __name__ == '__main__':
# First download the bibliography file.
import BibTeX
config.load(sys.argv[1])
+ if config.CACHE_UMASK != None:
+ os.umask(config.CACHE_UMASK)
bib = BibTeX.parseFile(config.MASTER_BIB)
remove_old()
print "Downloading missing ranks."