pylint needed a hand to inspect compat.py

This commit is contained in:
Jeppe Klitgaard 2015-04-06 02:21:50 +02:00
parent 651357e8e8
commit 9f93c67fb6

View File

@ -7,7 +7,13 @@ both Python2 and Python3 while using the same codebase.
# example
# > from minecraft.compat import input
# > input("asd")
# Hi, I'm pylint, and sometimes I act silly, at which point my programmer
# overlords need to correct me.
# pylint: disable=undefined-variable
try:
input = raw_input
except NameError:
pass
# pylint: enable=undefined-variable