[Zope-Checkins] CVS: Zope/lib/python/Products/ZCatalog - Catalog.py:1.81.16.5
Andreas Jung
andreas@andreas-jung.com
Tue, 4 Feb 2003 11:35:51 -0500
Update of /cvs-repository/Zope/lib/python/Products/ZCatalog
In directory cvs.zope.org:/tmp/cvs-serv17318/lib/python/Products/ZCatalog
Modified Files:
Tag: Zope-2_5-branch
Catalog.py
Log Message:
Collector #771: ClassTypes was not initialized
=== Zope/lib/python/Products/ZCatalog/Catalog.py 1.81.16.4 => 1.81.16.5 ===
--- Zope/lib/python/Products/ZCatalog/Catalog.py:1.81.16.4 Sun Jan 19 06:13:54 2003
+++ Zope/lib/python/Products/ZCatalog/Catalog.py Tue Feb 4 11:35:48 2003
@@ -45,7 +45,7 @@
if hasattr(ob, '__call__'):
return 1
else:
- return type(ob) in ClassTypes
+ return isinstance(ob, types.ClassType)
else:
return callable(ob)