mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2025-02-17 20:31:29 +01:00
Implemented compatibility layer for the long type (has been removed in py3) Added test for long-type compat.
13 lines
205 B
Python
13 lines
205 B
Python
"""
|
|
This module stores code used for making pyCraft compatible with
|
|
both Python2 and Python3 while using the same codebase.
|
|
"""
|
|
|
|
import six
|
|
|
|
# ### LONG ###
|
|
if six.PY3:
|
|
long = int
|
|
else:
|
|
long = long
|