[Biopython-dev] [Bug 3037] PhyloXMLIO creates extremely ugly xml

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Tue Mar 30 01:24:09 EDT 2010


http://bugzilla.open-bio.org/show_bug.cgi?id=3037


eric.talevich at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #3 from eric.talevich at gmail.com  2010-03-30 01:24 EST -------
(In reply to comment #2)
> Eric, check out Fredrik Lundh's indent function for ElementTree. I'm not sure
> this ever made it into the source, but it's small enough to copy/paste:
> 
> http://effbot.org/zone/element-lib.htm#prettyprint
> 

Thanks! I did just that:
http://github.com/biopython/biopython/commit/3d892a39015c5659c91ff819ceeea043585f3607

The write() function in Phylo, PhyloXMLIO and Writer class now take an 'indent'
argument, which defaults to False for the sake of I/O performance and file
size.

Side note: apparently the ElementTree module has just emerged from a 4-year
hibernation, so new features (like this one) and bug fixes will begin appearing
in the Python stdlib as of version 3.2.


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Biopython-dev mailing list