[Zope-Checkins] CVS: Zope/lib/python/Products/ZCatalog - Catalog.py:1.98.6.8

Andreas Jung andreas@andreas-jung.com
Tue, 4 Feb 2003 11:34:43 -0500


Update of /cvs-repository/Zope/lib/python/Products/ZCatalog
In directory cvs.zope.org:/tmp/cvs-serv17169/lib/python/Products/ZCatalog

Modified Files:
      Tag: Zope-2_6-branch
	Catalog.py 
Log Message:
Collector #771: ClassTypes was not initialized


=== Zope/lib/python/Products/ZCatalog/Catalog.py 1.98.6.7 => 1.98.6.8 ===
--- Zope/lib/python/Products/ZCatalog/Catalog.py:1.98.6.7	Sun Jan 19 06:13:31 2003
+++ Zope/lib/python/Products/ZCatalog/Catalog.py	Tue Feb  4 11:34:40 2003
@@ -44,7 +44,7 @@
             if hasattr(ob, '__call__'):
                 return 1
             else:
-                return type(ob) in ClassTypes
+                return isinstance(ob, types.ClassType)
         else:
             return callable(ob)