commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10404 - gnuradio/trunk/grc/src/platforms/python


From: jblum
Subject: [Commit-gnuradio] r10404 - gnuradio/trunk/grc/src/platforms/python
Date: Fri, 6 Feb 2009 12:16:49 -0700 (MST)

Author: jblum
Date: 2009-02-06 12:16:49 -0700 (Fri, 06 Feb 2009)
New Revision: 10404

Modified:
   gnuradio/trunk/grc/src/platforms/python/Port.py
Log:
proper check for too many connections

Modified: gnuradio/trunk/grc/src/platforms/python/Port.py
===================================================================
--- gnuradio/trunk/grc/src/platforms/python/Port.py     2009-02-06 19:01:10 UTC 
(rev 10403)
+++ gnuradio/trunk/grc/src/platforms/python/Port.py     2009-02-06 19:16:49 UTC 
(rev 10404)
@@ -50,7 +50,7 @@
                _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):





reply via email to

[Prev in Thread] Current Thread [Next in Thread]