Convert to boolean

This commit is contained in:
Matthew Tretter 2013-03-15 00:49:24 -04:00
parent 70ff6dc788
commit 1e129c5b70

View file

@ -86,4 +86,5 @@ class Simple(CachedFileBackend):
self.set_state(file, CacheFileState.EXISTS)
def _exists(self, file):
return getattr(file, '_file', None) or file.storage.exists(file.name)
return bool(getattr(file, '_file', None)
or file.storage.exists(file.name))