start.py fixed, added compat.py
This commit is contained in:
1 parent
87a1101953
commit
ce19872115
2 files changed
+19
-6
No files matched your search
@@ -0,0 +1,13 @@
|
||||
"""
|
||||
This module stores code used for making pyCraft compatible with
|
||||
both Python2 and Python3 while using the same codebase.
|
||||
"""
|
||||
|
||||
# Raw input -> input shenangians
|
||||
# example
|
||||
# > from minecraft.compat import input
|
||||
# > input("asd")
|
||||
try:
|
||||
input = raw_input
|
||||
except NameError:
|
||||
pass
|
||||
Reference in new issue
Block a user