Sublime Forum

Using SublimeLinter 3 to check python 2 code?

#1

I’ve just upgraded to Sublime Text 3 beta and the associated development version of SublimeLinter. Now I find my python code is being checked as if it was Python 3 code. Is there an easy way to get SublimeLinter to check it as if it was python 2 code?

0 Likes

#2

With SublimeLintr 3.0.35 I was able to make this work by adding:

"@python": 2,

This is with ST build 3059. It won’t work for a mix of Python 2 and 3, but it’s a huge improvement.

0 Likes

#3

I don’t normally monitor this forum, I guess you missed in the README that there is a dedicated SublimeLinter support forum.

groups.google.com/forum/#!forum/sublimelinter

0 Likes