[Biopython-dev] [Bug 3105] Bio.Nexus useless line

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Sun Jul 4 18:09:38 UTC 2010


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





------- Comment #1 from eric.talevich at gmail.com  2010-07-04 14:09 EST -------
I think it's a typo. The function write_nexus_data takes an argument
"filename", and this code block is supposed to figure out whether that's an
open file handle or a file name.

So it should be:

if hasattr(filename, 'write'): ...

But we actually do it a different way now, checking for strings:

if isinstance(filename, basestr): # open it
else: # it's a handle


-- 
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