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) --- cron/nightly_gzip | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cron/nightly_gzip') 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