diff options
author | bwarsaw <> | 2005-05-13 02:57:19 +0000 |
---|---|---|
committer | bwarsaw <> | 2005-05-13 02:57:19 +0000 |
commit | fd88d0606759107336d1a6c6a060771763fdc2bb (patch) | |
tree | 6b70adf2555662e1fdbc991ac8e42663eb6d6e63 | |
parent | 8a3170c2e442a591c3750aa174581ccd301a4fa5 (diff) | |
download | mailman2-fd88d0606759107336d1a6c6a060771763fdc2bb.tar.gz mailman2-fd88d0606759107336d1a6c6a060771763fdc2bb.tar.xz mailman2-fd88d0606759107336d1a6c6a060771763fdc2bb.zip |
main(): Honor doprint even if we're not in filetype == 1.
-rw-r--r-- | bin/dumpdb | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -1,6 +1,6 @@ #! @PYTHON@ # -# Copyright (C) 1998-2004 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2005 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 @@ -132,18 +132,21 @@ def main(): m = [] try: cnt = 1 - print _('[----- start pickle file -----]') + if doprint: + print _('[----- start pickle file -----]') while True: try: obj = load(fp) except EOFError: - print _('[----- end pickle file -----]') + if doprint: + print _('[----- end pickle file -----]') break - print _('<----- start object %(cnt)s ----->') - if isinstance(obj, StringType): - print obj - else: - pp.pprint(obj) + if doprint: + print _('<----- start object %(cnt)s ----->') + if isinstance(obj, StringType): + print obj + else: + pp.pprint(obj) cnt += 1 m.append(obj) finally: |