Skip to content
Snippets Groups Projects
Commit 4402a7bf authored by Damian Johnson's avatar Damian Johnson
Browse files

Ignore pyflake false alarms for python2/3 compatability

We have a few 'if python2 do X, if python3 do Y' spots to have compatability
with both versions. Pyflakes understandably complained about not having long,
unicode, or raw_input under python3...

  https://trac.torproject.org/projects/tor/ticket/14559

Adding these to our ignore pattern. Now running the tests under python3 with
pyflakes and pep8 the static checks pass.
parent db0518c0
Branches
Tags
No related merge requests found
......@@ -132,11 +132,14 @@ pep8.ignore E131
# issue.
pyflakes.ignore run_tests.py => 'unittest' imported but unused
pyflakes.ignore stem/__init__.py => undefined name 'long'
pyflakes.ignore stem/__init__.py => undefined name 'unicode'
pyflakes.ignore stem/control.py => undefined name 'controller'
pyflakes.ignore stem/prereq.py => 'RSA' imported but unused
pyflakes.ignore stem/prereq.py => 'asn1' imported but unused
pyflakes.ignore stem/prereq.py => 'unittest' imported but unused
pyflakes.ignore stem/prereq.py => 'long_to_bytes' imported but unused
pyflakes.ignore stem/interpreter/__init__.py => undefined name 'raw_input'
pyflakes.ignore stem/util/test_tools.py => 'pyflakes' imported but unused
pyflakes.ignore stem/util/test_tools.py => 'pep8' imported but unused
pyflakes.ignore test/mocking.py => undefined name 'test'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment