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

This commit is contained in:
Gregory P. Smith 2007-10-13 23:05:54 +00:00
parent 57da2de9b1
commit 574e1ba814
1 changed files with 1 additions and 2 deletions

View 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"