mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-08-14 02:37:01 -07:00
qt refactoring
This commit is contained in:
parent
60cd65a97e
commit
225c234076
8 changed files with 48 additions and 47 deletions
|
@ -6,18 +6,17 @@ from ..io import FormattedFileIO
|
|||
|
||||
|
||||
class KeyValueDB:
|
||||
"""
|
||||
Simple key/value database.
|
||||
|
||||
each key/value pickled/unpickled separately,
|
||||
thus unpickling error will not corrupt whole db
|
||||
|
||||
filepath(None) if None, DB will not be saved on disk
|
||||
"""
|
||||
|
||||
_KeyValueDB_VERSION = 1
|
||||
|
||||
def __init__(self, filepath = None):
|
||||
"""
|
||||
Simple key/value database.
|
||||
|
||||
each key/value pickled/unpickled separately,
|
||||
thus unpickling error will not corrupt whole db
|
||||
|
||||
filepath(None) if None, DB will not be saved on disk
|
||||
"""
|
||||
self._filepath = Path(filepath) if filepath is not None else None
|
||||
self._save_timestamp = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue