From 513a02ccd2217fcd281f58420ff2eec27dfd3081 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Mon, 28 Oct 2002 03:43:42 +0000 Subject: Move the import of Charset to after the import of paths, so we pick up Mailman's copy of the email package instead of Python's. --- cron/checkdbs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cron') diff --git a/cron/checkdbs b/cron/checkdbs index 05d492e4e..46883cf0c 100755 --- a/cron/checkdbs +++ b/cron/checkdbs @@ -23,12 +23,12 @@ list moderators if necessary. import sys import time from types import UnicodeType -from email.Charset import Charset import paths -# mm_cfg must be imported before the other modules, due to the side-effect of -# it hacking sys.paths to include site-packages. Without this, running this -# script from cron with python -S will fail. + +# Import this after paths so we get Mailman's copy of the email package +from email.Charset import Charset + from Mailman import mm_cfg from Mailman import Utils from Mailman import MailList -- cgit v1.3.1