In most cases you can do the following as a workaround for this pyflakes issue:
if PY3:
unicode = str
Then unicode is a valid name, even if it isnt used.
IMO if pyflakes was to fix this, it should allow the project to define PYxx names (e.g. PY3) with an environment marker somewhere (tox.in), and then pyflakes can look for those simple names in the code being analyised.
In most cases you can do the following as a workaround for this pyflakes issue:
if PY3:
unicode = str
Then unicode is a valid name, even if it isnt used.
IMO if pyflakes was to fix this, it should allow the project to define PYxx names (e.g. PY3) with an environment marker somewhere (tox.in), and then pyflakes can look for those simple names in the code being analyised.