Add a alias for 'long' since python3 do not have it (#15952)

This commit is contained in:
Michael Scherer 2016-05-23 16:30:06 +02:00 committed by Brian Coca
parent 72b29d122e
commit f9f6f24acd

View file

@ -67,6 +67,12 @@ else:
def iteritems(d):
return d.iteritems()
try:
# Python 2
long
except NameError:
# Python 3
long = int
try:
import selinux