pylint needed a hand to inspect compat.py
This commit is contained in:
1 parent
651357e8e8
commit
9f93c67fb6
1 file changed
+6
@@ -7,7 +7,13 @@ both Python2 and Python3 while using the same codebase.
|
|||||||
# example
|
# example
|
||||||
# > from minecraft.compat import input
|
# > from minecraft.compat import input
|
||||||
# > input("asd")
|
# > 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:
|
try:
|
||||||
input = raw_input
|
input = raw_input
|
||||||
except NameError:
|
except NameError:
|
||||||
pass
|
pass
|
||||||
|
# pylint: enable=undefined-variable
|
||||||
Reference in new issue
Block a user