From: Douglas Bagnall Date: Thu, 4 Oct 2018 02:29:02 +0000 (+1300) Subject: python/upgradehelpers: use int not long for PY3 X-Git-Tag: tdb-1.3.17~1364 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79e1ed1ffa172c9ed4d79668d7fb6adb56770ef7;p=thirdparty%2Fsamba.git python/upgradehelpers: use int not long for PY3 int works OK for py2 also. Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- diff --git a/python/samba/upgradehelpers.py b/python/samba/upgradehelpers.py index 804d820c886..e3d1ce0124b 100644 --- a/python/samba/upgradehelpers.py +++ b/python/samba/upgradehelpers.py @@ -831,7 +831,6 @@ def int64range2str(value): :param value: The int64 range :return: A string of the representation of the range """ - - lvalue = long(value) + lvalue = int(value) str = "%d-%d" % (lvalue &0xFFFFFFFF, lvalue >>32) return str