mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
drop context manager
This commit is contained in:
parent
9e67ea736a
commit
fcfe1bd66c
1 changed files with 0 additions and 7 deletions
|
|
@ -62,13 +62,6 @@ class DBProxy:
|
|||
def close(self) -> None:
|
||||
self._db.close()
|
||||
|
||||
def __enter__(self) -> "DBProxy":
|
||||
self._db.execute("begin")
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, *args) -> None:
|
||||
self._db.close()
|
||||
|
||||
def totalChanges(self) -> Any:
|
||||
return self._db.total_changes
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue