aboutsummaryrefslogtreecommitdiffstats
path: root/cron/nightly_gzip
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2014-03-11 13:56:17 -0700
committerMark Sapiro <mark@msapiro.net>2014-03-11 13:56:17 -0700
commit179b5035ddfaa2a53e37b93b6571e2917e41b19a (patch)
tree68135a8afaeaca28be321dbfe509d24461e42724 /cron/nightly_gzip
parent1df678c0f409c3e76d0b2e187624d428deee4a68 (diff)
downloadmailman2-179b5035ddfaa2a53e37b93b6571e2917e41b19a.tar.gz
mailman2-179b5035ddfaa2a53e37b93b6571e2917e41b19a.tar.xz
mailman2-179b5035ddfaa2a53e37b93b6571e2917e41b19a.zip
Fixed a NameError exception in cron/nightly_gzip when it tries to print
the usage message. (LP: #1291038)
Diffstat (limited to '')
-rwxr-xr-xcron/nightly_gzip6
1 files changed, 5 insertions, 1 deletions
diff --git a/cron/nightly_gzip b/cron/nightly_gzip
index 0a0f4e33..de493d0e 100755
--- a/cron/nightly_gzip
+++ b/cron/nightly_gzip
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2014 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
@@ -56,12 +56,16 @@ import paths
from Mailman import mm_cfg
from Mailman import Utils
from Mailman import MailList
+from Mailman import i18n
program = sys.argv[0]
VERBOSE = 0
+_ = i18n._
+i18n.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE)
+
def usage(code, msg=''):
if code:
fd = sys.stderr