What python linter can I use to spot Python 2-3 compatibility issues?
<p>I want to migrate a Python codebase to work in both Python 2 and Python 3 and I was surprised to see that by default tools like flake8 or pep8 missed a very simple use of print without parentheses (<code>print 1</code> instead of <code>print(1)</code>).</p>

<p>How can I ease this migration?</p>

<p>You should use 2to3 to spot issues/incompatibilities in the code</p>

<p><a href="https://docs.python.org/3/howto/pyporting.html" rel="nofollow">https://docs.python.org/3/howto/pyporting.html</a></p>

python python-3.x pep8 flake8