mirror of
https://github.com/python/cpython.git
synced 2025-08-21 17:25:34 +00:00
Backport 58450: fix uncollectable reference leak in bsddb.db.DBShelf.append
This commit is contained in:
parent
57da2de9b1
commit
574e1ba814
1 changed files with 1 additions and 2 deletions
|
@ -154,8 +154,7 @@ class DBShelf(DictMixin):
|
||||||
|
|
||||||
def append(self, value, txn=None):
|
def append(self, value, txn=None):
|
||||||
if self.get_type() == db.DB_RECNO:
|
if self.get_type() == db.DB_RECNO:
|
||||||
self.append = self.__append
|
return self.__append(value, txn=txn)
|
||||||
return self.append(value, txn=txn)
|
|
||||||
raise DBShelveError, "append() only supported when dbshelve opened with filetype=dbshelve.db.DB_RECNO"
|
raise DBShelveError, "append() only supported when dbshelve opened with filetype=dbshelve.db.DB_RECNO"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue