summaryrefslogtreecommitdiff
path: root/gr-digital
diff options
context:
space:
mode:
authorJosh Blum2013-06-13 01:33:28 -0700
committerJosh Blum2013-06-13 01:33:28 -0700
commit53223d7e7c60974bd56ec3287fdc184ea910087b (patch)
treea0a9d362ccd8828201b62fd2ae96de2973887801 /gr-digital
parent62402b122cd3f4f3fb80325771d6117f75798b11 (diff)
downloadgnuradio-53223d7e7c60974bd56ec3287fdc184ea910087b.tar.gz
gnuradio-53223d7e7c60974bd56ec3287fdc184ea910087b.tar.bz2
gnuradio-53223d7e7c60974bd56ec3287fdc184ea910087b.zip
digital: a block should not hold a reference to itself
Diffstat (limited to 'gr-digital')
-rw-r--r--[-rwxr-xr-x]gr-digital/python/qa_constellation.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gr-digital/python/qa_constellation.py b/gr-digital/python/qa_constellation.py
index 6962ec633..95942933a 100755..100644
--- a/gr-digital/python/qa_constellation.py
+++ b/gr-digital/python/qa_constellation.py
@@ -158,7 +158,8 @@ class mod_demod(gr.hier_block2):
# TX
self.constellation = constellation
self.differential = differential
- self.blocks = [self]
+ import weakref
+ self.blocks = [weakref.proxy(self)]
# We expect a stream of unpacked bits.
# First step is to pack them.
self.blocks.append(
@@ -199,7 +200,7 @@ class mod_demod(gr.hier_block2):
# connect to block output
check_index = len(self.blocks)
self.blocks = self.blocks[:check_index]
- self.blocks.append(self)
+ self.blocks.append(weakref.proxy(self))
self.connect(*self.blocks)