~mailman-coders/mailman/2.1

« back to all changes in this revision

Viewing changes to cron/nightly_gzip

  • Committer: Mark Sapiro
  • Date: 2014-03-11 20:56:17 UTC
  • Revision ID: mark@msapiro.net-20140311205617-pgqxk210nthfxc72
Fixed a NameError exception in cron/nightly_gzip when it tries to print
the usage message.  (LP: #1291038)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! @PYTHON@
2
2
3
 
# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
 
3
# Copyright (C) 1998-2014 by the Free Software Foundation, Inc.
4
4
#
5
5
# This program is free software; you can redistribute it and/or
6
6
# modify it under the terms of the GNU General Public License
56
56
from Mailman import mm_cfg
57
57
from Mailman import Utils
58
58
from Mailman import MailList
 
59
from Mailman import i18n
59
60
 
60
61
 
61
62
 
62
63
program = sys.argv[0]
63
64
VERBOSE = 0
64
65
 
 
66
_ = i18n._
 
67
i18n.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE)
 
68
 
65
69
def usage(code, msg=''):
66
70
    if code:
67
71
        fd = sys.stderr