We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fd9f93 commit 9a6b1c0Copy full SHA for 9a6b1c0
1 file changed
Lib/dbm/sqlite3.py
@@ -48,7 +48,7 @@ def thread_deleted(_, idt=idt):
48
# caught in a reference loop. We would like to be called
49
# as soon as the OS-level thread ends instead.
50
if self._conn is not None:
51
- dct = self._conn.dicts.pop(idt)
+ self._conn.pop(idt)
52
wrthread = ref(thread, thread_deleted)
53
try:
54
conn = sqlite3.connect(self._uri, autocommit=True, uri=True)
@@ -60,7 +60,7 @@ def thread_deleted(_, idt=idt):
60
def close(self):
61
for t, conn in self._conn.items():
62
conn.close()
63
- del self._conn[t]
+ self._conn = {}
64
65
66
class _Database(MutableMapping):
0 commit comments