From: Masashi Honma Date: Thu, 24 Jan 2019 07:45:47 +0000 (+0900) Subject: tests: Use int instead of long for python3 compatibility X-Git-Tag: hostap_2_8~501 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e6b283f75853daab0edbb9821013eb809d93d648;p=thirdparty%2Fhostap.git tests: Use int instead of long for python3 compatibility This patch is made by using 2to3 command. $ find . -name *.py | xargs 2to3 -f long -w -n Signed-off-by: Masashi Honma --- diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index 101690a1c..fe069d396 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -6347,7 +6347,7 @@ def wsc_dh_init(): return own_private, pk def wsc_dh_kdf(peer_pk, own_private, mac_addr, e_nonce, r_nonce): - peer_public = long(binascii.hexlify(peer_pk), 16) + peer_public = int(binascii.hexlify(peer_pk), 16) if peer_public < 2 or peer_public >= group_5_prime: raise Exception("Invalid peer public key") if pow(peer_public, (group_5_prime - 1) / 2, group_5_prime) != 1: