Here is another false positive, for a not-so-subtle case:
Using flake8, which uses PyFlakes, I get the report:
board.py:14:19: F821 undefined name 'StandardError'
However, StandardError is a built-in exception in Python 2 (but not in Python 3).
Here is another false positive, for a not-so-subtle case:
Using flake8, which uses PyFlakes, I get the report:
board.py:14:19: F821 undefined name 'StandardError'
However, StandardError is a built-in exception in Python 2 (but not in Python 3).