[Biopython-dev] bug in FormatRegistry.py
Jeffrey Chang
jeffrey.chang at duke.edu
Tue Oct 5 14:52:56 EDT 2004
Good catch! I've committed the fix in the CVS.
Jeff
On Oct 4, 2004, at 6:29 PM, Coleman, Michael wrote:
> 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
>
> _______________________________________________
> Biopython-dev mailing list
> Biopython-dev at biopython.org
> http://biopython.org/mailman/listinfo/biopython-dev
More information about the Biopython-dev
mailing list