comparison MoinMoin/action/SpellCheck.py @ 1427:5e4d0d49dd60

don't use mask, as we have os.umask() now
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 27 Aug 2006 01:00:36 +0200
parents a7f8dceb4410
children ed44b93599b5
comparison
equal deleted inserted replaced
1426:33852c180bd5 1427:5e4d0d49dd60
83 if dbhash and os.path.exists(cachename): 83 if dbhash and os.path.exists(cachename):
84 wordsdict = dbhash.open(cachename, "r") 84 wordsdict = dbhash.open(cachename, "r")
85 else: 85 else:
86 wordsfiles = _getWordsFiles(request) 86 wordsfiles = _getWordsFiles(request)
87 if dbhash: 87 if dbhash:
88 wordsdict = dbhash.open(cachename, 'n', 0666 & config.umask) 88 wordsdict = dbhash.open(cachename, 'n')
89 else: 89 else:
90 wordsdict = {} 90 wordsdict = {}
91 91
92 for wordsfile in wordsfiles: 92 for wordsfile in wordsfiles:
93 _loadWordsFile(request, wordsdict, wordsfile) 93 _loadWordsFile(request, wordsdict, wordsfile)