Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Dictionary comprehension (feature you are using) is Python 2.7+.</p> <pre><code> inv_map = {v:k for k, v in map.items()} </code></pre> <p>Internally SublimeLinter runs Python command line programs called pep8 (pep8 is a package name for <a href="http://www.python.org/dev/peps/pep-0008/" rel="nofollow noreferrer">PEP-8 guideline checks</a> and pyflakes. Due to architecture of SublimeLinter, running them is may be limited to Python 2.x targets, a Python version embedded by Sublime Text. </p> <p>Relevant SublimeLinter source code here:</p> <p><a href="https://github.com/SublimeLinter/SublimeLinter/blob/master/sublimelinter/modules/python.py" rel="nofollow noreferrer">https://github.com/SublimeLinter/SublimeLinter/blob/master/sublimelinter/modules/python.py</a></p> <p>The error in your question can come from pep8 or Pyflakes. </p> <p>Pyflakes does not offer documentation how to make it ignore any lines. Probably not possible, as the suggestion in the answers of this question <a href="https://stackoverflow.com/questions/5033727/how-do-i-get-pyflakes-to-ignore-a-statement">How do I get Pyflakes to ignore a statement?</a> is not to use Pyflakes.</p> <p><a href="https://pypi.python.org/pypi/pyflakes" rel="nofollow noreferrer">https://pypi.python.org/pypi/pyflakes</a></p> <p>pep8 offers only global error and warning ignores, not on per-file or per-line basis.</p> <p><a href="http://pep8.readthedocs.org/en/latest/intro.html#configuration" rel="nofollow noreferrer">http://pep8.readthedocs.org/en/latest/intro.html#configuration</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload