[Zope-Checkins] CVS: Zope2 - ZCatalog.py:1.89

evan@serenade.digicool.com evan@serenade.digicool.com
Mon, 21 May 2001 15:40:55 -0400


Update of /cvs-repository/Zope2/lib/python/Products/ZCatalog
In directory serenade:/home/evan/Zope/trunk/lib/python/Products/ZCatalog

Modified Files:
	ZCatalog.py 
Log Message:
Fixed assorted typos (Collector #218)



--- Updated File ZCatalog.py in package Zope2 --
--- ZCatalog.py	2001/04/27 20:27:49	1.88
+++ ZCatalog.py	2001/05/21 19:40:55	1.89
@@ -721,11 +721,10 @@
 
     def manage_convertBTrees(self, threshold=200):
         """Convert the catalog's data structures to use BTrees package"""
+        assert type(threshold) is type(0)
         tt=time.time()
         ct=time.clock()
-        self._catalog._convertBTrees(threshold
-                                     *1 #make sure ints an int)
-                                     )
+        self._catalog._convertBTrees(threshold)
         tt=time.time()-tt
         ct=time.clock()-ct
         return 'Finished conversion in %s seconds (%s cpu)' % (tt, ct)