Browse Source

'store' is a function, '_store' is a dict

master
Raphael Roberts 5 years ago
parent
commit
0758f45865
  1. 4
      tibi_hardlinks/cache.py

4
tibi_hardlinks/cache.py

@ -13,7 +13,7 @@ class Cache:
atexit.register(self.store)
def read(self, key):
if self.store is None:
if self._store is None:
self.load()
try:
return self._store[key]
@ -21,7 +21,7 @@ class Cache:
return None
def write(self, key, data):
if self.store is None:
if self._store is None:
self.load()
self._store[key] = data

Loading…
Cancel
Save