Skip to content

Commit

Permalink
PhyloXMLIO: fixed Bug 3044, parsing node_id elements
Browse files Browse the repository at this point in the history
  • Loading branch information
etal committed Apr 7, 2010
1 parent 7fd7812 commit 218a2e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Bio/Phylo/PhyloXMLIO.py
Expand Up @@ -440,7 +440,8 @@ def _parse_clade(self, parent):
elif tag == 'name':
clade.name = collapse_wspace(elem.text)
elif tag == 'node_id':
clade.node_id = elem.text and elem.text.strip() or None
clade.node_id = PX.Id(elem.text.strip(),
elem.attrib.get('provider'))
elif namespace != NAMESPACES['phy']:
clade.other.append(self.other(elem, namespace, tag))
elem.clear()
Expand Down

0 comments on commit 218a2e6

Please sign in to comment.