From 574e1ba814b19aafa93519f953529b35aab9fa12 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sat, 13 Oct 2007 23:05:54 +0000 Subject: [PATCH] Backport 58450: fix uncollectable reference leak in bsddb.db.DBShelf.append --- Lib/bsddb/dbshelve.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/bsddb/dbshelve.py b/Lib/bsddb/dbshelve.py index 82e914d05a4..6fdc6dec1d4 100644 --- a/Lib/bsddb/dbshelve.py +++ b/Lib/bsddb/dbshelve.py @@ -154,8 +154,7 @@ class DBShelf(DictMixin): def append(self, value, txn=None): 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"