]> granicus.if.org Git - python/commitdiff
Backport 58450: fix uncollectable reference leak in bsddb.db.DBShelf.append
authorGregory P. Smith <greg@mad-scientist.com>
Sat, 13 Oct 2007 23:05:54 +0000 (23:05 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sat, 13 Oct 2007 23:05:54 +0000 (23:05 +0000)
Lib/bsddb/dbshelve.py

index 82e914d05a431b21daf5bb3466fe79d87a8f1563..6fdc6dec1d44ff86a100583d15e60ef2847cd91d 100644 (file)
@@ -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"