summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2015-07-12 09:26:24 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2015-07-12 09:26:24 -0700
commit85d46c7a5aa0a25462014922a3e0706cdf92db76 (patch)
tree3f898c7ec4d947422196b91fc9a17b77b5912ae5 /gnuradio-runtime/python/gnuradio
parent350466c1c897c651ecdffe91d6ed25c662e97175 (diff)
parent55d8f482f5acf33b8f629556a4fa5019908bb4be (diff)
Merge branch 'master' into next
Diffstat (limited to 'gnuradio-runtime/python/gnuradio')
-rw-r--r--gnuradio-runtime/python/gnuradio/gr/gateway.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/gateway.py b/gnuradio-runtime/python/gnuradio/gr/gateway.py
index 4ff0c4fe00..2a27b8a9e0 100644
--- a/gnuradio-runtime/python/gnuradio/gr/gateway.py
+++ b/gnuradio-runtime/python/gnuradio/gr/gateway.py
@@ -177,9 +177,8 @@ class gateway_block(object):
forecast is only called from a general block
this is the default implementation
"""
- for ninput_item in ninput_items_required:
- ninput_item = noutput_items + self.history() - 1;
- return
+ for i in range(len(ninput_items_required)):
+ ninput_items_required[i] = noutput_items + self.history() - 1
def general_work(self, *args, **kwargs):
"""general work to be overloaded in a derived class"""
@@ -189,8 +188,11 @@ class gateway_block(object):
"""work to be overloaded in a derived class"""
raise NotImplementedError("work not implemented")
- def start(self): return True
- def stop(self): return True
+ def start(self):
+ return True
+
+ def stop(self):
+ return True
def set_msg_handler(self, which_port, handler_func):
handler = msg_handler()