[Python-checkins] r58451 - python/branches/release25-maint/Lib/bsddb/dbshelve.py

gregory.p.smith python-checkins at python.org
Sun Oct 14 01:05:54 CEST 2007


Author: gregory.p.smith
Date: Sun Oct 14 01:05:54 2007
New Revision: 58451
Modified:
 python/branches/release25-maint/Lib/bsddb/dbshelve.py
Log:
Backport 58450: fix uncollectable reference leak in bsddb.db.DBShelf.append
Modified: python/branches/release25-maint/Lib/bsddb/dbshelve.py
==============================================================================
--- python/branches/release25-maint/Lib/bsddb/dbshelve.py	(original)
+++ python/branches/release25-maint/Lib/bsddb/dbshelve.py	Sun Oct 14 01:05:54 2007
@@ -154,8 +154,7 @@
 
 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"
 
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /