Kaydet (Commit) 574e1ba8 authored tarafından Gregory P. Smith's avatar Gregory P. Smith

Backport 58450: fix uncollectable reference leak in bsddb.db.DBShelf.append

üst 57da2de9
...@@ -154,8 +154,7 @@ class DBShelf(DictMixin): ...@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment