[CMF-checkins] CVS: CMF/CMFCollector - CollectorIssue.py:1.52
Shane Hathaway
shane@zope.com
Tue, 27 May 2003 11:39:10 -0400
Update of /cvs-repository/CMF/CMFCollector
In directory cvs.zope.org:/tmp/cvs-serv32153
Modified Files:
CollectorIssue.py
Log Message:
Fixed a small memory leak. sys.exc_info() includes a reference to a
traceback, which refers to the local variables. Until now, the local
variables dictionary referred to 'err', making a circular reference that
Python 2.1 doesn't collect.
=== CMF/CMFCollector/CollectorIssue.py 1.51 => 1.52 ===
--- CMF/CMFCollector/CollectorIssue.py:1.51 Fri May 9 17:40:22 2003
+++ CMF/CMFCollector/CollectorIssue.py Tue May 27 11:39:09 2003
@@ -530,8 +530,7 @@
mh.send(message)
except:
import sys
- err = sys.exc_info()
- return "Email notice error: '%s'" % str(err[1])
+ return "Email notice error: '%s'" % str(sys.exc_info()[1])
def _process_file(self, file, fileid, filetype, comment):
"""Upload file to issue if it is substantial (has a name).