Catalogs: Python3 does not have a 'long' integer type.

This commit is contained in:
Edward d'Auvergne 2019-11-18 10:09:03 +01:00
parent 5d3fcd3ba0
commit 185a10f7c5

View File

@ -17,6 +17,14 @@ CATALOG_VERSION = 4
quiet = False
verbose = False
# The Python version.
PY_VERSION = sys.version_info[0]
# Python 2 and 3 compatibility.
if PY_VERSION == 3:
long = int
def warning(msg):
if not quiet:
print(msg)