mirror of
https://github.com/ankitects/anki.git
synced 2025-12-10 21:36:55 -05:00
drop context manager
This commit is contained in:
parent
f4d4078537
commit
527d269681
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