From fc24e5b66c98277ec840bef1a9c1facb85236fd4 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Mon, 1 Oct 2001 22:50:25 +0000 Subject: Use DumperSwitchboard class to read the filename. This closes SF bug #465471. --- bin/dumpdb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/dumpdb b/bin/dumpdb index d2bf78a26..a70c5ed48 100644 --- a/bin/dumpdb +++ b/bin/dumpdb @@ -48,7 +48,7 @@ import cPickle from mimelib.Generator import Generator import paths -from Mailman.Queue.Switchboard import Switchboard +from Mailman.Queue.Switchboard import DumperSwitchboard from Mailman.i18n import _ PROGRAM = sys.argv[0] @@ -101,8 +101,9 @@ def main(): # Handle dbs if filetype == 1: - # Note: this uses a protected interface - d = Switchboard(os.path.split(filename)[0])._ext_read(filename) + # 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: -- cgit v1.3.1