dumpdb can't handle simple filename arg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
Medium
|
Unassigned |
Bug Description
dumpdb can't handle a filename arg with no OS
path separator in it (os.path.split() returns
NULL for the first value).
Here's a patch that allows it to be as flexible
as I need it to be:
--- dumpdb 2001/09/07 23:18:47 2.4
+++ dumpdb 2001/09/22 03:01:01
@@ -102,6 +102,10 @@
# Handle dbs
if filetype == 1:
# Note: this uses a protected interface
+ fileonly = os.path.
+ # handle "filename has no path separators" case
+ if fileonly is None:
+ fileonly = filename;
d =
Switchboard(
pp = pprint.
[http://
fixed in revision 2.6