[Biopython-dev] [Bug 2605] test_PDB failure with Python 2.6

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Fri Oct 3 06:26:48 EDT 2008


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





------- Comment #1 from biopython-bugzilla at maubp.freeserve.co.uk  2008-10-03 06:26 EST -------
I think this is related to the old style exceptions which were being used in
Bio.PDB, see http://www.python.org/dev/peps/pep-0008/

> When raising an exception, use "raise ValueError('message')" instead of
> the older form "raise ValueError, 'message'".
>
> The paren-using form is preferred because when the exception arguments
> are long or include string formatting, you don't need to use line
> continuation characters thanks to the containing parentheses.  The older
> form will be removed in Python 3000.

It looks like the old form was removed in Python 2.6 (or I have mis-identified
the problem).

I've switched all the exception raises in Bio.PDB in CVS, and made the
exceptions into proper classes, which I hope will address this bug under python
2.6.


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