summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorbwarsaw2001-12-31 21:24:34 +0000
committerbwarsaw2001-12-31 21:24:34 +0000
commited0312a59b37511fe309f03f66e9799267d60279 (patch)
tree51b77ad6a3480fbaaa24a12f6425a37b4e857700 /bin
parent40b4a3500d71f8e93ed9823666fe56c77d4e06bb (diff)
downloadmailman-ed0312a59b37511fe309f03f66e9799267d60279.tar.gz
mailman-ed0312a59b37511fe309f03f66e9799267d60279.tar.zst
mailman-ed0312a59b37511fe309f03f66e9799267d60279.zip
main(): Might as well use the pretty printer when we dump out the
pickle too!
Diffstat (limited to 'bin')
-rw-r--r--bin/dumpdb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dumpdb b/bin/dumpdb
index c79c98396..4c469094e 100644
--- a/bin/dumpdb
+++ b/bin/dumpdb
@@ -100,15 +100,15 @@ def main():
usage(1, _('Please specify either -p or -m.'))
# Handle dbs
+ pp = pprint.PrettyPrinter(indent=4)
if filetype == 1:
# BAW: this probably doesn't work if there are mixed types of .db
# files (i.e. some marshals, some bdbs).
d = DumperSwitchboard().read(filename)
- pp = pprint.PrettyPrinter(indent=4)
pp.pprint(d)
else:
m = cPickle.load(open(filename))
- print m
+ pp.pprint(m)