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-utils/python/utils/gr_plot_qt       | 2 +-
 gr-utils/python/utils/plot_fft_base.py | 2 +-
 gr-utils/python/utils/plot_psd_base.py | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'gr-utils/python')

diff --git a/gr-utils/python/utils/gr_plot_qt b/gr-utils/python/utils/gr_plot_qt
index cd2db87fd9..854ecc53b8 100755
--- a/gr-utils/python/utils/gr_plot_qt
+++ b/gr-utils/python/utils/gr_plot_qt
@@ -338,7 +338,7 @@ class gr_plot_qt(QtGui.QMainWindow):
 
                 tstep = 1.0 / self.sample_rate
                 self.iq = iq
-                self.time = [tstep*(self.position + i) for i in xrange(len(self.iq))]
+                self.time = [tstep*(self.position + i) for i in range(len(self.iq))]
 
                 self.set_file_pos_box(start, end)
             except MemoryError:
diff --git a/gr-utils/python/utils/plot_fft_base.py b/gr-utils/python/utils/plot_fft_base.py
index c0651529ea..5040aefa87 100644
--- a/gr-utils/python/utils/plot_fft_base.py
+++ b/gr-utils/python/utils/plot_fft_base.py
@@ -93,7 +93,7 @@ class plot_fft_base(object):
             self.iq_fft = self.dofft(self.iq)
 
             tstep = 1.0 / self.sample_rate
-            #self.time = scipy.array([tstep*(self.position + i) for i in xrange(len(self.iq))])
+            #self.time = scipy.array([tstep*(self.position + i) for i in range(len(self.iq))])
             self.time = scipy.array([tstep*(i) for i in range(len(self.iq))])
 
             self.freq = self.calc_freq(self.time, self.sample_rate)
diff --git a/gr-utils/python/utils/plot_psd_base.py b/gr-utils/python/utils/plot_psd_base.py
index 7c5138be4d..0a0f3cab34 100644
--- a/gr-utils/python/utils/plot_psd_base.py
+++ b/gr-utils/python/utils/plot_psd_base.py
@@ -103,7 +103,7 @@ class plot_psd_base(object):
             # returns a zero-length array
             if(len(self.iq) > 0):
                 tstep = 1.0 / self.sample_rate
-                #self.time = scipy.array([tstep*(self.position + i) for i in xrange(len(self.iq))])
+                #self.time = scipy.array([tstep*(self.position + i) for i in range(len(self.iq))])
                 self.time = scipy.array([tstep*(i) for i in range(len(self.iq))])
 
                 self.iq_psd, self.freq = self.dopsd(self.iq)
-- 
cgit v1.2.3