summaryrefslogtreecommitdiff
path: root/cron
diff options
context:
space:
mode:
authorbwarsaw2002-10-28 03:43:42 +0000
committerbwarsaw2002-10-28 03:43:42 +0000
commit513a02ccd2217fcd281f58420ff2eec27dfd3081 (patch)
tree7f5191525a647025851c5a7c9ac230153e1d4e24 /cron
parent0f7a31f6e45c22595bf041a92d947d9d5e7590b4 (diff)
downloadmailman-513a02ccd2217fcd281f58420ff2eec27dfd3081.tar.gz
mailman-513a02ccd2217fcd281f58420ff2eec27dfd3081.tar.zst
mailman-513a02ccd2217fcd281f58420ff2eec27dfd3081.zip
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.
Diffstat (limited to 'cron')
-rwxr-xr-xcron/checkdbs8
1 files changed, 4 insertions, 4 deletions
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