From 944d449b3d18c8a51786b79b2c27bc91aecd673e Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Thu, 22 Nov 2007 11:15:26 -0800 Subject: versions.py - Moved imports to module scope. --- Mailman/versions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Mailman') diff --git a/Mailman/versions.py b/Mailman/versions.py index cffe5c6a..f77eb2f2 100644 --- a/Mailman/versions.py +++ b/Mailman/versions.py @@ -33,11 +33,14 @@ run again until another version change is detected. """ +import email + from types import ListType, StringType from Mailman import mm_cfg from Mailman import Utils from Mailman import Message +from Mailman.Bouncer import _BounceInfo from Mailman.MemberAdaptor import UNKNOWN from Mailman.Logging.Syslog import syslog @@ -419,7 +422,6 @@ def UpdateOldUsers(mlist): # Go through all the keys in bounce_info. If the key is not a member, or # if the data is not a _BounceInfo instance, chuck the bounce info. We're # doing things differently now. - from Mailman.Bouncer import _BounceInfo for m in mlist.bounce_info.keys(): if not mlist.isMember(m) or not isinstance(mlist.getBounceInfo(m), _BounceInfo): @@ -483,7 +485,6 @@ def NewRequestsDatabase(l): # blow away the original timestamp and request id. This means the # request will live a little longer than it possibly should have, # but that's no big deal. - import email for p in v: author, text = p[2] reason = p[3] -- cgit v1.2.3