[Zope-Checkins] CVS: Zope/lib/python/ZTUtils - Zope.py:1.10.6.4

Fred L. Drake, Jr. fred at zope.com
Mon Jan 26 11:47:08 EST 2004


Update of /cvs-repository/Zope/lib/python/ZTUtils
In directory cvs.zope.org:/tmp/cvs-serv13196

Modified Files:
      Tag: Zope-2_6-branch
	Zope.py 
Log Message:
types don't have a guaranteed truth value, so check that it isn't None


=== Zope/lib/python/ZTUtils/Zope.py 1.10.6.3 => 1.10.6.4 ===
--- Zope/lib/python/ZTUtils/Zope.py:1.10.6.3	Mon Jan 26 11:20:14 2004
+++ Zope/lib/python/ZTUtils/Zope.py	Mon Jan 26 11:47:06 2004
@@ -249,7 +249,7 @@
 def simple_marshal(v):
     if isinstance(v, StringType):
         return ''
-    if BooleanType and isinstance(v, BooleanType):
+    if BooleanType is not None and isinstance(v, BooleanType):
         return ':boolean'
     if isinstance(v, IntType):
         return ':int'




More information about the Zope-Checkins mailing list