[Biopython-dev] [Bug 2538] New: _security_check_parameters assumes all arguments are strings

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Mon Jul 7 17:08:40 UTC 2008


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

           Summary: _security_check_parameters assumes all arguments are
                    strings
           Product: Biopython
           Version: 1.46
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main Distribution
        AssignedTo: biopython-dev at biopython.org
        ReportedBy: sbassi at gmail.com


This code no longer works:

result, err = NCBIStandalone.blastall(b_exe, "blastn",
              b_db, f_name, expectation=1e-10, descriptions=1)

Because new _security_check_parameters function assumes all blastall parameters
are string, but expectation and descriptions are float and int.

Proposed fix:

Modify line 1986 from:
    if ";" in value or "&&" in value :
To this:
    if ";" in value or "&&" in str(value) :


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