From 2bd564ca225cbf1d02eb5025315bb67fe458ba00 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 31 May 2017 18:19:30 -0700 Subject: mpm: Replaced xrange with range for better Python future-proofing --- mpm/tools/mpm_debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpm/tools') diff --git a/mpm/tools/mpm_debug.py b/mpm/tools/mpm_debug.py index dff1c78bd..b1f0b28a2 100755 --- a/mpm/tools/mpm_debug.py +++ b/mpm/tools/mpm_debug.py @@ -56,7 +56,7 @@ def echo(address, port): sock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM) - message = "MPM-ECHO" + bytearray(random.getrandbits(8) for _ in xrange(8000-8)) + message = "MPM-ECHO" + bytearray(random.getrandbits(8) for _ in range(8000-8)) sock.sendto(message, (address, port)) sock.settimeout(0.05) # wait max 50 ms while True: -- cgit v1.2.3