projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08f8ec2
)
21639: PEP8 cleanup
author
Peter Amstutz <peter.amstutz@curii.com>
Wed, 3 Apr 2024 21:28:37 +0000
(17:28 -0400)
committer
Peter Amstutz <peter.amstutz@curii.com>
Wed, 3 Apr 2024 21:28:37 +0000
(17:28 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
sdk/python/arvados/diskcache.py
patch
|
blob
|
history
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