commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r10096 - gnuradio/trunk/grc/src/platforms/base


From: jblum
Subject: [Commit-gnuradio] r10096 - gnuradio/trunk/grc/src/platforms/base
Date: Sun, 30 Nov 2008 11:53:30 -0700 (MST)

Author: jblum
Date: 2008-11-30 11:53:29 -0700 (Sun, 30 Nov 2008)
New Revision: 10096

Modified:
   gnuradio/trunk/grc/src/platforms/base/Param.py
Log:
dont check that

Modified: gnuradio/trunk/grc/src/platforms/base/Param.py
===================================================================
--- gnuradio/trunk/grc/src/platforms/base/Param.py      2008-11-30 07:36:33 UTC 
(rev 10095)
+++ gnuradio/trunk/grc/src/platforms/base/Param.py      2008-11-30 18:53:29 UTC 
(rev 10096)
@@ -158,12 +158,7 @@
                        #store the option
                        self._options[key] = option
                #test the enum options
-               if self._options or self.is_enum():
-                       #test against bad combos of type and enum
-                       try: assert(self._options)
-                       except AssertionError: self._exit_with_error('At least 
one option must exist when type "enum" is set.')
-                       try: assert(self.is_enum())
-                       except AssertionError: self._exit_with_error('Type 
"enum" must be set when options are present.')
+               if self.is_enum():
                        #test against options with identical keys
                        try: assert(len(set(self.get_option_keys())) == 
len(self._options))
                        except AssertionError: self._exit_with_error('Options 
keys "%s" are not unique.'%self.get_option_keys())





reply via email to

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