summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/examples/network
diff options
context:
space:
mode:
authorNathan West <nathan.west@okstate.edu>2013-07-26 09:52:28 -0400
committerTom Rondeau <tom@trondeau.com>2013-07-26 09:52:28 -0400
commit370d1a34dc70db7fd150d55f1a59f26d6db23fa4 (patch)
tree520a94fb185692c0cd8e3d97cd8b38e65fd90788 /gnuradio-runtime/examples/network
parent5432c985f911f4715456846425dbf84121842de8 (diff)
examples: Some of the examples were updated to use 3.7 API, but the new module namespaces were never imported.
Diffstat (limited to 'gnuradio-runtime/examples/network')
-rwxr-xr-xgnuradio-runtime/examples/network/audio_sink.py2
-rwxr-xr-xgnuradio-runtime/examples/network/dial_tone_sink.py2
-rwxr-xr-xgnuradio-runtime/examples/network/dial_tone_source.py1
-rwxr-xr-xgnuradio-runtime/examples/network/vector_sink.py2
4 files changed, 3 insertions, 4 deletions
diff --git a/gnuradio-runtime/examples/network/audio_sink.py b/gnuradio-runtime/examples/network/audio_sink.py
index 0e412de5ae..de20abe48d 100755
--- a/gnuradio-runtime/examples/network/audio_sink.py
+++ b/gnuradio-runtime/examples/network/audio_sink.py
@@ -33,7 +33,7 @@ except ImportError:
sys.exit(1)
class audio_sink(gr.top_block):
- def __init__(self, host, port, pkt_size, sample_rate, eof, wait):
+ def __init__(self, host, port, pkt_size, sample_rate, eof):
gr.top_block.__init__(self, "audio_sink")
src = blocks.udp_source(gr.sizeof_float, host, port, pkt_size, eof=eof)
dst = audio.sink(sample_rate)
diff --git a/gnuradio-runtime/examples/network/dial_tone_sink.py b/gnuradio-runtime/examples/network/dial_tone_sink.py
index fee6ded846..7139a13250 100755
--- a/gnuradio-runtime/examples/network/dial_tone_sink.py
+++ b/gnuradio-runtime/examples/network/dial_tone_sink.py
@@ -28,7 +28,7 @@ from optparse import OptionParser
class dial_tone_sink(gr.top_block):
def __init__(self, host, port, pkt_size, sample_rate, eof):
gr.top_block.__init__(self, "dial_tone_sink")
- udp = blokcs.udp_source(gr.sizeof_float, host, port, pkt_size, eof=eof)
+ udp = blocks.udp_source(gr.sizeof_float, host, port, pkt_size, eof=eof)
sink = audio.sink(sample_rate)
self.connect(udp, sink)
diff --git a/gnuradio-runtime/examples/network/dial_tone_source.py b/gnuradio-runtime/examples/network/dial_tone_source.py
index 44f05dc83c..26064962dd 100755
--- a/gnuradio-runtime/examples/network/dial_tone_source.py
+++ b/gnuradio-runtime/examples/network/dial_tone_source.py
@@ -21,7 +21,6 @@
#
from gnuradio import gr
-from gnuradio import blocks
from gnuradio.eng_option import eng_option
from optparse import OptionParser
import sys
diff --git a/gnuradio-runtime/examples/network/vector_sink.py b/gnuradio-runtime/examples/network/vector_sink.py
index c0397d1e43..c756f36f42 100755
--- a/gnuradio-runtime/examples/network/vector_sink.py
+++ b/gnuradio-runtime/examples/network/vector_sink.py
@@ -26,7 +26,7 @@ from gnuradio.eng_option import eng_option
from optparse import OptionParser
class vector_sink(gr.top_block):
- def __init__(self, host, port, pkt_size, eof, wait):
+ def __init__(self, host, port, pkt_size, eof):
gr.top_block.__init__(self, "vector_sink")
udp = blocks.udp_source(gr.sizeof_float, host, port, pkt_size, eof=eof)