From 9e625c4821f4c63421b3d3747c0c4f358fef6c5f Mon Sep 17 00:00:00 2001
From: Douglas Anderson <danderson@ntia.doc.gov>
Date: Sun, 12 Feb 2017 15:52:19 -0800
Subject: python3: update non-GRC components to use python2 or python3

---
 gr-blocks/python/blocks/qa_cpp_py_binding_set.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'gr-blocks/python/blocks/qa_cpp_py_binding_set.py')

diff --git a/gr-blocks/python/blocks/qa_cpp_py_binding_set.py b/gr-blocks/python/blocks/qa_cpp_py_binding_set.py
index 5b81de08f9..641f588faf 100644
--- a/gr-blocks/python/blocks/qa_cpp_py_binding_set.py
+++ b/gr-blocks/python/blocks/qa_cpp_py_binding_set.py
@@ -24,6 +24,7 @@
 # This program tests mixed python and c++ GRCP sets in a single app
 #
 
+
 import sys, time, random, numpy, re
 from gnuradio import gr, gr_unittest, blocks
 
@@ -31,7 +32,7 @@ from gnuradio.ctrlport import GNURadio
 from gnuradio import ctrlport
 import os
 
-class inc_class:
+class inc_class(object):
     def __init__(self,val):
         self.val = val;
 
@@ -108,7 +109,7 @@ class test_cpp_py_binding_set(gr_unittest.TestCase):
 
 
     def test_002(self):
-        data = range(1, 10)
+        data = list(range(1, 10))
 
         self.src = blocks.vector_source_c(data, True)
         self.p = blocks.nop(gr.sizeof_gr_complex)
-- 
cgit v1.2.3