From c40c0f3243711bbf25afdd0147d45f2e96b91c06 Mon Sep 17 00:00:00 2001
From: Andrej Rode <mail@andrejro.de>
Date: Sat, 23 Jun 2018 19:01:34 +0200
Subject: python: Py3k compat

---
 gr-blocks/python/blocks/qa_socket_pdu.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'gr-blocks/python')

diff --git a/gr-blocks/python/blocks/qa_socket_pdu.py b/gr-blocks/python/blocks/qa_socket_pdu.py
index 2e033491d3..961dc914ea 100644
--- a/gr-blocks/python/blocks/qa_socket_pdu.py
+++ b/gr-blocks/python/blocks/qa_socket_pdu.py
@@ -105,7 +105,7 @@ class qa_socket_pdu (gr_unittest.TestCase):
         # Test that the TCP server can stream PDUs <= the MTU size.
         port = str(random.Random().randint(0, 30000) + 10000)
         mtu = 10000
-        srcdata = tuple([x % 256 for x in xrange(mtu)])
+        srcdata = tuple(x % 256 for x in range(mtu))
         data = pmt.init_u8vector(srcdata.__len__(), srcdata)
         pdu_msg = pmt.cons(pmt.PMT_NIL, data)
 
@@ -125,7 +125,7 @@ class qa_socket_pdu (gr_unittest.TestCase):
         received = self.pdu_sink.get_message(0)
         received_data = pmt.cdr(received)
         msg_data = []
-        for i in xrange(mtu):
+        for i in range(mtu):
             msg_data.append(pmt.u8vector_ref(received_data, i))
         self.assertEqual(srcdata, tuple(msg_data))
 
-- 
cgit v1.2.3