Catalogs: Python3 does not have a 'long' integer type.
This commit is contained in:
parent
5d3fcd3ba0
commit
185a10f7c5
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue