projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
21639: PEP8 cleanup
[arvados.git]
/
sdk
/
python
/
arvados
/
diskcache.py
diff --git
a/sdk/python/arvados/diskcache.py
b/sdk/python/arvados/diskcache.py
index 22bf73894b8fd8d9d1a1270de1973481a937dc51..a0b3bbb7c952344f8db1af3d4f42f13b6c28015c 100644
(file)
--- a/
sdk/python/arvados/diskcache.py
+++ b/
sdk/python/arvados/diskcache.py
@@
-106,7
+106,7
@@
class DiskCacheSlot(object):
return len(self.content)
def evict(self):
- if
self.content is None or len(self.content) == 0
:
+ if
not self.content
:
return
# The mmap region might be in use when we decided to evict