Catalogs: Python3 does not have a 'long' integer type.
This commit is contained in:
@@ -17,6 +17,14 @@ CATALOG_VERSION = 4
|
|||||||
quiet = False
|
quiet = False
|
||||||
verbose = 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):
|
def warning(msg):
|
||||||
if not quiet:
|
if not quiet:
|
||||||
print(msg)
|
print(msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user