[Zope3-checkins] CVS: Zope3/lib/python/Zope/TextIndex - BaseIndex.py:1.3

Guido van Rossum guido@python.org
Wed, 4 Dec 2002 14:02:35 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/TextIndex
In directory cvs.zope.org:/tmp/cvs-serv6301

Modified Files:
	BaseIndex.py 
Log Message:
Fix embarrassing typo in documentCount().  Add unit tests.

=== Zope3/lib/python/Zope/TextIndex/BaseIndex.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/TextIndex/BaseIndex.py:1.2	Wed Dec  4 13:41:56 2002
+++ Zope3/lib/python/Zope/TextIndex/BaseIndex.py	Wed Dec  4 14:02:34 2002
@@ -92,7 +92,7 @@
 
     def documentCount(self):
         """Return the number of documents in the index."""
-        return len(self.index._docweight)
+        return len(self._docweight)
 
     def get_words(self, docid):
         """Return a list of the wordids for a given docid."""