dumpdb can't handle simple filename arg

Bug #265545 reported by Dmick
2
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.split(filename)[0]
+ # handle "filename has no path separators" case
+ if fileonly is None:
+ fileonly = filename;
         d =
Switchboard(os.path.split(filename)[0])._ext_read(filename)
         pp = pprint.PrettyPrinter(indent=4)
         pp.pprint(d)

[http://sourceforge.net/tracker/index.php?func=detail&aid=463728&group_id=103&atid=100103]

Revision history for this message
Dmick (dmick) wrote :

fixed in revision 2.6

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.