mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-09-28 14:37:30 +02:00
pylint needed a hand to inspect compat.py
This commit is contained in:
parent
651357e8e8
commit
9f93c67fb6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user