summaryrefslogtreecommitdiff
path: root/python/gras
diff options
context:
space:
mode:
authorJosh Blum2013-02-24 14:41:58 -0800
committerJosh Blum2013-02-24 14:41:58 -0800
commit781cf7b0f9d4bc834ae89267108ed846c7de1323 (patch)
tree2c8f2d1d8d00461e65a47bf9364b64b00e952ae1 /python/gras
parent883743bd59f40f9ce1e30bd196de78c2e7646294 (diff)
downloadsandhi-781cf7b0f9d4bc834ae89267108ed846c7de1323.tar.gz
sandhi-781cf7b0f9d4bc834ae89267108ed846c7de1323.tar.bz2
sandhi-781cf7b0f9d4bc834ae89267108ed846c7de1323.zip
gras: wappers are in gnuradio, clean up this swig
Diffstat (limited to 'python/gras')
-rw-r--r--python/gras/GRAS_HierBlock.i12
1 files changed, 4 insertions, 8 deletions
diff --git a/python/gras/GRAS_HierBlock.i b/python/gras/GRAS_HierBlock.i
index f2a9b5a..3c4e75e 100644
--- a/python/gras/GRAS_HierBlock.i
+++ b/python/gras/GRAS_HierBlock.i
@@ -60,7 +60,7 @@ namespace gras
struct TopBlockPython : TopBlock
{
- TopBlockPython(const std::string &name = "Top"):
+ TopBlockPython(const std::string &name):
TopBlock(name)
{
//NOP
@@ -99,7 +99,7 @@ struct TopBlockPython : TopBlock
struct HierBlockPython : HierBlock
{
- HierBlockPython(const std::string &name = "Hier"):
+ HierBlockPython(const std::string &name):
HierBlock(name)
{
//NOP
@@ -140,7 +140,7 @@ def internal_connect__(fcn, obj, *args):
fcn(obj, src, src_index, sink, sink_index)
class TopBlock(TopBlockPython):
- def __init__(self, name="Top", *args, **kwargs):
+ def __init__(self, name="Top"):
TopBlockPython.__init__(self, name)
def connect(self, *args):
@@ -150,13 +150,9 @@ class TopBlock(TopBlockPython):
return internal_connect__(TopBlockPython.disconnect, self, *args)
class HierBlock(HierBlockPython):
- def __init__(self, name="Hier", *args, **kwargs):
+ def __init__(self, name="Hier"):
HierBlockPython.__init__(self, name)
- #backwards compatible silliness
- import weakref
- self._hb = weakref.proxy(self)
-
def connect(self, *args):
return internal_connect__(HierBlockPython.connect, self, *args)