start.py fixed, added compat.py

This commit is contained in:
Jeppe Klitgaard committed 2015-04-06 02:11:26 +02:00
1 parent 87a1101953
commit ce19872115
2 files changed
+19 -6

No files matched your search

+13
View File
@@ -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