aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/tools
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-05-31 18:19:30 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:58 -0800
commit2bd564ca225cbf1d02eb5025315bb67fe458ba00 (patch)
treed295f722df18cad84a7aa9db6d7f084dfa6b4338 /mpm/tools
parentd16d342be2dee7fef1f798349eba211cce0f27f9 (diff)
downloaduhd-2bd564ca225cbf1d02eb5025315bb67fe458ba00.tar.gz
uhd-2bd564ca225cbf1d02eb5025315bb67fe458ba00.tar.bz2
uhd-2bd564ca225cbf1d02eb5025315bb67fe458ba00.zip
mpm: Replaced xrange with range for better Python future-proofing
Diffstat (limited to 'mpm/tools')
-rwxr-xr-xmpm/tools/mpm_debug.py2
1 files changed, 1 insertions, 1 deletions
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: