I am running emacs24
and I'm new to emacs. I have some code in Python 2.7 that I am checking with flycheck
.
When I check the syntax, I get:
error F821 undefined name 'xrange' (python-flake8)
I understand that xrange
is not in Python3, but here I'm on Python 2.7. I guess it's configured to run on Python 3, since also raw_input
yields the same error.
How do I fix this?