summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/dbshelve.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2007-10-13 23:05:54 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2007-10-13 23:05:54 (GMT)
commit574e1ba814b19aafa93519f953529b35aab9fa12 (patch)
treee0d1e1b033b5eb89d163e3495f4a33c4708b3898 /Lib/bsddb/dbshelve.py
parent57da2de9b18c218fe38e1b75895f01167642e7e4 (diff)
downloadcpython-574e1ba814b19aafa93519f953529b35aab9fa12.zip
cpython-574e1ba814b19aafa93519f953529b35aab9fa12.tar.gz
cpython-574e1ba814b19aafa93519f953529b35aab9fa12.tar.bz2
Backport 58450: fix uncollectable reference leak in bsddb.db.DBShelf.append
Diffstat (limited to 'Lib/bsddb/dbshelve.py')
-rw-r--r--Lib/bsddb/dbshelve.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/bsddb/dbshelve.py b/Lib/bsddb/dbshelve.py
index 82e914d..6fdc6de 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"