How to set python-mode so linters check for python 3 versus python 2 errors

329 Views Asked by At

To All,

How do I set python-mode so the linters check for Python 3 versus Python 2 errors depending on if I am editing a Python 3 or a Python 2 file? After the last update of python-mode, the linters seems to be defaulting to Python 3. For example there are lots of complaints about print statements - print "hello world" instead of print functions - print("hello world") when I am in a Python 2 file.

Note that let g:pymode_python = 'python' is not the solution so I could not find an answer in :help pymode

Thanks,

Steve

0

There are 0 best solutions below