summaryrefslogtreecommitdiff
path: root/gr-uhd/swig
diff options
context:
space:
mode:
authorJohnathan Corgan2012-03-24 10:18:49 -0700
committerJohnathan Corgan2012-03-24 10:18:49 -0700
commit60e31043e2fc5e44d1376725addd485d183c7d1c (patch)
treed0c2afb29ebc08f29e6fdf298e7ce6b2ba401e5c /gr-uhd/swig
parentad6cdc58ba4ef740af08efa6e220e2345e77d3d9 (diff)
parentf06bc44e150fbec00200ed98cf80cc384ec6dac2 (diff)
downloadgnuradio-60e31043e2fc5e44d1376725addd485d183c7d1c.tar.gz
gnuradio-60e31043e2fc5e44d1376725addd485d183c7d1c.tar.bz2
gnuradio-60e31043e2fc5e44d1376725addd485d183c7d1c.zip
Merge branch 'maint'
Diffstat (limited to 'gr-uhd/swig')
-rw-r--r--gr-uhd/swig/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-uhd/swig/__init__.py b/gr-uhd/swig/__init__.py
index d098a7b8a..82dbdd9e7 100644
--- a/gr-uhd/swig/__init__.py
+++ b/gr-uhd/swig/__init__.py
@@ -55,6 +55,10 @@ def _prepare_uhd_swig():
def __new__(self, *args): return str.__new__(self)
def __getitem__(self, key): return self.get(key)
def __setitem__(self, key, val): self.set(key, val)
+ def __init__(self, *args, **kwargs):
+ super(device_addr_t, self).__init__(*args)
+ if args and isinstance(args[0], device_addr_t):
+ for key in args[0].keys(): self[key] = args[0][key]
setattr(uhd_swig, 'device_addr_t', device_addr_t)
#make the streamer args take **kwargs on init