Trivial patches

This commit is contained in:
Miroslav Stampar
2020-12-10 14:22:44 +01:00
parent 94709c93bb
commit 5bf52c3f9c
6 changed files with 13 additions and 13 deletions

View File

@@ -116,7 +116,7 @@ class HashDB(object):
self._write_cache[hash_] = getUnicode(value) if not serialize else serializeObject(value)
self._cache_lock.release()
if getCurrentThreadName() in ('0', 'MainThread'):
if getCurrentThreadName() in ('0', "MainThread"):
self.flush()
def flush(self, forced=False):