Comment 1 for bug 848470

Revision history for this message
Phil Frost (bitglue) wrote :

Pyflakes still supports python 2.5, where string exceptions are still allowed. Pyflakes has no way to know what the target python version is, so must take the conservative approach and assume the code might be targeted at python 2.5 and string exceptions are valid.

For code targeted at later versions, I suggest catching these errors in unit tests.