[Biopython-dev] bug in FormatRegistry.py

Coleman, Michael MKC at Stowers-Institute.org
Mon Oct 4 18:29:56 EDT 2004


Hi,

I ran into a bug in FormatRegistry.py just now.  In this function, the
reference to 'parent' is bogus.  I suspect it should be 'child'.

    def _build_child_path(self, format, visited=None):
        if visited is None:
            visited = {}
        if visited.has_key(format.name):
            return []
        format_list = [format]
        for child in getattr(format, 'objs', []):
            format_list.extend(self._build_child_path(parent, visited)) 
        return format_list

I ran into this while following this recipe

	http://www.biopython.org/docs/cookbook/genbank_to_fasta.html

Regards,
Mike

Mike Coleman, Scientific Programmer, +1 816 926 4419
Stowers Institute for Biomedical Research
1000 E. 50th St., Kansas City, MO  64110




More information about the Biopython-dev mailing list