summaryrefslogtreecommitdiff
path: root/grc/src/platforms
diff options
context:
space:
mode:
authorjblum2009-02-06 19:16:49 +0000
committerjblum2009-02-06 19:16:49 +0000
commit1349e1681c01fa028d906edf109a8c2b4cd22aac (patch)
treeba678def96d08d4f5ff8d3e9a053b10b4c4ccbad /grc/src/platforms
parentc077a28498d2691f28e34846667575a8c4dc6859 (diff)
downloadgnuradio-1349e1681c01fa028d906edf109a8c2b4cd22aac.tar.gz
gnuradio-1349e1681c01fa028d906edf109a8c2b4cd22aac.tar.bz2
gnuradio-1349e1681c01fa028d906edf109a8c2b4cd22aac.zip
proper check for too many connections
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10404 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/platforms')
-rw-r--r--grc/src/platforms/python/Port.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/src/platforms/python/Port.py b/grc/src/platforms/python/Port.py
index 73ec07242..109eecb62 100644
--- a/grc/src/platforms/python/Port.py
+++ b/grc/src/platforms/python/Port.py
@@ -50,7 +50,7 @@ class Port(_Port):
_Port.validate(self)
try: assert(self.get_enabled_connections() or self.get_optional())
except AssertionError: self._add_error_message('Port is not connected.')
- try: assert(self.is_source() or len(self.get_enabled_connections()) == 1)
+ try: assert(self.is_source() or len(self.get_enabled_connections()) <= 1)
except AssertionError: self._add_error_message('Port has too many connections.')
def get_vlen(self):