Author: reinhard
Date: 2005-05-25 08:48:21 -0500 (Wed, 25 May 2005)
New Revision: 7553

Modified:
   trunk/gnue-common/src/apps/checktype.py
Log:
Checktype can now accept None instead of NoneType.


Modified: trunk/gnue-common/src/apps/checktype.py
===================================================================
--- trunk/gnue-common/src/apps/checktype.py     2005-05-23 06:53:02 UTC (rev 
7552)
+++ trunk/gnue-common/src/apps/checktype.py     2005-05-25 13:48:21 UTC (rev 
7553)
@@ -99,8 +99,12 @@
   """
   if isinstance (validtype, ListType):
     for t in validtype:
-      if isinstance (variable, t):
-        return
+      if t is None:
+        if variable is None:
+          return
+      else:
+        if isinstance (variable, t):
+          return
   else:
     if isinstance (variable, validtype):
       return



_______________________________________________
Commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to