[entropy.db] EntropyRepository: implement basic __hash__ builtin method
This commit is contained in:
@@ -520,7 +520,6 @@ class EntropyRepository(EntropyRepositoryPluginStore, TextInterface):
|
||||
self.initializeDatabase()
|
||||
return cursor
|
||||
|
||||
|
||||
def _connection(self):
|
||||
self._cleanup_stale_cur_conn()
|
||||
c_key = self._get_cur_th_key()
|
||||
@@ -552,6 +551,9 @@ class EntropyRepository(EntropyRepositoryPluginStore, TextInterface):
|
||||
def __unicode__(self):
|
||||
return self.__show_info()
|
||||
|
||||
def __hash__(self):
|
||||
return id(self)
|
||||
|
||||
def setCacheSize(self, size):
|
||||
"""
|
||||
Change low-level, storage engine based cache size.
|
||||
|
||||
Reference in New Issue
Block a user