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
|
||||
# > 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
|
||||
Reference in new issue
Block a user