------------------------------------------------------------ revno: 1308 committer: Mark Sapiro <m...@msapiro.net> branch nick: 2.2 timestamp: Tue 2014-03-11 14:00:43 -0700 message: Fixed a NameError exception in cron/nightly_gzip when it tries to print the usage message. (LP: #1291038) modified: NEWS cron/nightly_gzip
-- lp:mailman/2.2 https://code.launchpad.net/~mailman-coders/mailman/2.2 Your team Mailman Checkins is subscribed to branch lp:mailman/2.2. To unsubscribe from this branch go to https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'NEWS' --- NEWS 2014-02-20 15:36:16 +0000 +++ NEWS 2014-03-11 21:00:43 +0000 @@ -58,6 +58,9 @@ 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) === modified file 'cron/nightly_gzip' --- cron/nightly_gzip 2008-06-06 18:13:09 +0000 +++ cron/nightly_gzip 2014-03-11 21:00:43 +0000 @@ -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 @@ 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
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org