From 179b5035ddfaa2a53e37b93b6571e2917e41b19a Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Tue, 11 Mar 2014 13:56:17 -0700 Subject: Fixed a NameError exception in cron/nightly_gzip when it tries to print the usage message. (LP: #1291038) --- NEWS | 3 +++ cron/nightly_gzip | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 52536922..004c2ea8 100755 --- a/NEWS +++ b/NEWS @@ -14,6 +14,9 @@ Here is a history of user visible changes to Mailman. Bug Fixes and other patches + - Fixed a NameError exception in cron/nightly_gzip when it tries to print + the usage message. (LP: #1291038) + - Fixed a bug in ListAdmin._handlepost that would crash when trying to preserve a held message for the site admin if HOLD_MESSAGES_AS_PICKLES is False. (LP: #1282365) 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 -- cgit v1.2.3