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

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Sun Jul 4 17:41:05 UTC 2010


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

           Summary: Bio.Nexus useless line
           Product: Biopython
           Version: 1.54
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Main Distribution
        AssignedTo: biopython-dev at biopython.org
        ReportedBy: tiagoantao at gmail.com


There is a line on Bio.Nexus that is wrong/useless:
elif hasattr(file, "write"):
This is checking if the built-in file class has an attribute called write
(which it also has).
This is the same as
elif True:
This is either useless or wrong.
This becomes a hurdle for automated conversion to python 3 as there is no file
class on python 3.


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