From 527d26968113486e8fd38b3b796154adb77b547b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 2 Mar 2020 20:53:46 +1000 Subject: [PATCH] drop context manager --- pylib/anki/dbproxy.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pylib/anki/dbproxy.py b/pylib/anki/dbproxy.py index 8c597c9e2..428be4c1b 100644 --- a/pylib/anki/dbproxy.py +++ b/pylib/anki/dbproxy.py @@ -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