From 55d3e4a47958be287648a2021f7e92d81086b2d9 Mon Sep 17 00:00:00 2001
From: Tom Rondeau <trondeau@vt.edu>
Date: Fri, 21 Dec 2012 15:11:39 -0500
Subject: blocks: removes blocks moved to gr-blocks from gnuradio-core.

Also fixes up some other missing moves.
---
 gr-audio/examples/python/test_resampler.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'gr-audio/examples/python/test_resampler.py')

diff --git a/gr-audio/examples/python/test_resampler.py b/gr-audio/examples/python/test_resampler.py
index 93be86086b..0f5544cfa9 100755
--- a/gr-audio/examples/python/test_resampler.py
+++ b/gr-audio/examples/python/test_resampler.py
@@ -20,7 +20,7 @@
 # Boston, MA 02110-1301, USA.
 #
 
-from gnuradio import gr, gru, blks2
+from gnuradio import gr, gru
 from gnuradio import audio
 from gnuradio.eng_option import eng_option
 from optparse import OptionParser
@@ -31,6 +31,12 @@ except ImportError:
     sys.stderr.write("Error: Program requires gr-analog.\n")
     sys.exit(1)
 
+try:
+    from gnuradio import blocks
+except ImportError:
+    sys.stderr.write("Error: Program requires gr-blocks.\n")
+    sys.exit(1)
+
 class my_top_block(gr.top_block):
 
     def __init__(self):
@@ -59,7 +65,7 @@ class my_top_block(gr.top_block):
 
         ampl = 0.1
         src0 = analog.sig_source_f(input_rate, analog.GR_SIN_WAVE, 650, ampl)
-        rr = blks2.rational_resampler_fff(interp, decim)
+        rr = blocks.rational_resampler_fff(interp, decim)
         dst = audio.sink(output_rate, options.audio_output)
         self.connect(src0, rr, (dst, 0))
 
-- 
cgit v1.2.3