diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2016-03-02 18:57:16 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2016-03-02 18:57:16 +0900 |
commit | 3d3ed445c841f40e793e733956ab65287ca5cfe1 (patch) | |
tree | f54b733b0a6a3353cb595d6c4664689ea5bf8a3f /bin/dumpdb | |
parent | 7bee928877b9771072c32c47912b346b41ce3c35 (diff) | |
parent | 8f22ba21a32701d2efaac0b8b1a1c0a4522912b0 (diff) | |
download | mailman2-3d3ed445c841f40e793e733956ab65287ca5cfe1.tar.gz mailman2-3d3ed445c841f40e793e733956ab65287ca5cfe1.tar.xz mailman2-3d3ed445c841f40e793e733956ab65287ca5cfe1.zip |
Update to lp:mailman/2.1 rev 1629 (no difference against the original branch
Diffstat (limited to 'bin/dumpdb')
-rw-r--r-- | bin/dumpdb | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -1,6 +1,6 @@ #! @PYTHON@ # -# Copyright (C) 1998-2007 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2016 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 @@ -54,7 +54,7 @@ from types import StringType import paths # Import this /after/ paths so that the sys.path is properly hacked -from Mailman.i18n import _ +from Mailman.i18n import C_ PROGRAM = sys.argv[0] COMMASPACE = ', ' @@ -72,7 +72,7 @@ def usage(code, msg=''): fd = sys.stderr else: fd = sys.stdout - print >> fd, _(__doc__) % globals() + print >> fd, C_(__doc__) % globals() if msg: print >> fd, msg sys.exit(code) @@ -102,10 +102,10 @@ def main(): doprint = False if len(args) < 1: - usage(1, _('No filename given.')) + usage(1, C_('No filename given.')) elif len(args) > 1: pargs = COMMASPACE.join(args) - usage(1, _('Bad arguments: %(pargs)s')) + usage(1, C_('Bad arguments: %(pargs)s')) else: filename = args[0] @@ -115,7 +115,7 @@ def main(): elif filename.endswith('.pck'): filetype = 0 else: - usage(1, _('Please specify either -p or -m.')) + usage(1, C_('Please specify either -p or -m.')) # Handle dbs pp = pprint.PrettyPrinter(indent=4) @@ -130,16 +130,16 @@ def main(): try: cnt = 1 if doprint: - print _('[----- start %(typename)s file -----]') + print C_('[----- start %(typename)s file -----]') while True: try: obj = load(fp) except EOFError: if doprint: - print _('[----- end %(typename)s file -----]') + print C_('[----- end %(typename)s file -----]') break if doprint: - print _('<----- start object %(cnt)s ----->') + print C_('<----- start object %(cnt)s ----->') if isinstance(obj, StringType): print obj else: |