From 32780964bcc7a7702e67fe199ef83777e4ee6ced Mon Sep 17 00:00:00 2001 From: mailman Date: Fri, 20 Mar 1998 18:29:22 +0000 Subject: Add __del__ to close the log_files that were retained across the maillist session. I was running out of file descriptors in the extensive map_maillist() type activities. Not sure if it's the log files, but it can't hurt. --- modules/maillist.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') diff --git a/modules/maillist.py b/modules/maillist.py index 86393d09b..19bdbf540 100644 --- a/modules/maillist.py +++ b/modules/maillist.py @@ -48,6 +48,10 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin, self.InitVars(name) self.Load() + def __del__(self): + for f in self._log_files.values(): + f.close() + def GetAdminEmail(self): return '%s-admin@%s' % (self._internal_name, self.host_name) -- cgit v1.3.1