[Biopython-dev] [Bug 2684] New: GenBank/__init__.py: Removing loop over string.whitespace

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Tue Nov 25 11:13:07 EST 2008


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

           Summary: GenBank/__init__.py: Removing loop over
                    string.whitespace
           Product: Biopython
           Version: Not Applicable
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main Distribution
        AssignedTo: biopython-dev at biopython.org
        ReportedBy: bsouthey at gmail.com


The function '_clean_location' in GenBank/__init__.py uses a 'for' loop over
string.whitespace that removes whitespace from string. A simpler way is to just
split the string on whitespace and rejoin it as a single line:

location_line=''.join(location_string.split())


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