diff options
| author | bwarsaw | 2001-10-01 22:50:25 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-10-01 22:50:25 +0000 |
| commit | fc24e5b66c98277ec840bef1a9c1facb85236fd4 (patch) | |
| tree | 80c7d123ecd520d07b29e5ed0f64808b7acf7670 /bin | |
| parent | 9e118c95e9ce6c86e01fadfef52ccfa86100ceba (diff) | |
| download | mailman-fc24e5b66c98277ec840bef1a9c1facb85236fd4.tar.gz mailman-fc24e5b66c98277ec840bef1a9c1facb85236fd4.tar.zst mailman-fc24e5b66c98277ec840bef1a9c1facb85236fd4.zip | |
Use DumperSwitchboard class to read the filename. This closes SF bug
#465471.
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/dumpdb | 7 |
1 files 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: |
