Moved LRU to gramps.gen.utils

This commit is contained in:
Doug Blank committed 2016-06-02 16:41:00 -04:00
1 parent 4913762d70
commit 283ac0f8bb
3 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -22,6 +22,8 @@
Proxy class for the Gramps databases. Caches lookups from handles.
"""
from gramps.gen.utils.lru import LRU
class CacheProxyDb:
"""
A Proxy for a database with cached lookups on handles.
@@ -52,7 +54,6 @@ class CacheProxyDb:
Clears all caches if handle is None, or
specific entry.
"""
from gramps.gui.views.treemodels.lru import LRU
if handle:
del self.cache_handle[handle]
else:
File renamed without changes.
+1 -1
View File
@@ -25,7 +25,7 @@
# Gramps modules
#
#-------------------------------------------------------------------------
from .lru import LRU
from gramps.gen.utils.lru import LRU
from gramps.gen.config import config
class BaseModel: