diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-05-31 18:19:30 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:58 -0800 |
commit | 2bd564ca225cbf1d02eb5025315bb67fe458ba00 (patch) | |
tree | d295f722df18cad84a7aa9db6d7f084dfa6b4338 /mpm/tools | |
parent | d16d342be2dee7fef1f798349eba211cce0f27f9 (diff) | |
download | uhd-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-x | mpm/tools/mpm_debug.py | 2 |
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: |