summaryrefslogtreecommitdiff
path: root/Mailman/bin/nightly_gzip.py
diff options
context:
space:
mode:
authorbwarsaw2007-01-05 06:47:39 +0000
committerbwarsaw2007-01-05 06:47:39 +0000
commit9af2533eb89e48683c049c5007737f7e94bbcdc1 (patch)
tree54853dcccee453eae60916af4e612b3004cc736f /Mailman/bin/nightly_gzip.py
parentd7da90ebc8aeee180ba470c002f7e37ef7df1089 (diff)
downloadmailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.tar.gz
mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.tar.zst
mailman-9af2533eb89e48683c049c5007737f7e94bbcdc1.zip
Diffstat (limited to 'Mailman/bin/nightly_gzip.py')
-rw-r--r--Mailman/bin/nightly_gzip.py16
1 files changed, 3 insertions, 13 deletions
diff --git a/Mailman/bin/nightly_gzip.py b/Mailman/bin/nightly_gzip.py
index f55b21493..4bd9271bc 100644
--- a/Mailman/bin/nightly_gzip.py
+++ b/Mailman/bin/nightly_gzip.py
@@ -1,6 +1,4 @@
-#! @PYTHON@
-#
-# Copyright (C) 1998-2006 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -31,6 +29,7 @@ from Mailman import Utils
from Mailman import Version
from Mailman.configuration import config
from Mailman.i18n import _
+from Mailman.initialize import initialize
__i18n_templates__ = True
@@ -77,7 +76,7 @@ def compress(txtfile, opts):
def main():
opts, args, parser = parseargs()
- config.load(opts.config)
+ initialize(opts.config)
if config.ARCHIVE_TO_MBOX not in (1, 2) or config.GZIP_ARCHIVE_TXT_FILES:
# We're only going to run the nightly archiver if messages are
@@ -119,12 +118,3 @@ def main():
files.append(txtfile)
for f in files:
compress(f, opts)
-
-
-
-if __name__ == '__main__':
- omask = os.umask(002)
- try:
- main()
- finally:
- os.umask(omask)