commit-gnue
[Top][All Lists]
Advanced

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

[gnue] r7553 - trunk/gnue-common/src/apps


From: reinhard
Subject: [gnue] r7553 - trunk/gnue-common/src/apps
Date: Wed, 25 May 2005 08:48:23 -0500 (CDT)

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





reply via email to

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