git-archimport-id: frederic@jolliton.com--2005-private/confparser--main--0.1--patch-8
#
r = readCachedConfiguration( filename )
cached = False
- if r :
+ if r is not None :
conf , isValid = r
cached = True
else :
if validator is not None :
basicvalidator.validate( conf , validator )
isValid = True
+ cached = False
#
# 4. Keep cached result
#
- writeCachedConfiguration( filename , conf , isValid )
+ if not cached :
+ writeCachedConfiguration( filename , conf , isValid )
except IOError , e :
if e[ 0 ] == errno.ENOENT :
conf = None