[Zope3-checkins] CVS: Zope3/src/zope/fieldindex - fieldindex.py:1.2

Andreas Jung andreas@andreas-jung.com
Wed, 26 Mar 2003 07:01:14 -0500


Update of /cvs-repository/Zope3/src/zope/fieldindex
In directory cvs.zope.org:/tmp/cvs-serv30986

Modified Files:
	fieldindex.py 
Log Message:
better workaround for broken has_key() implementation of btrees


=== Zope3/src/zope/fieldindex/fieldindex.py 1.1 => 1.2 ===
--- Zope3/src/zope/fieldindex/fieldindex.py:1.1	Wed Mar 26 06:53:43 2003
+++ Zope3/src/zope/fieldindex/fieldindex.py	Wed Mar 26 07:01:13 2003
@@ -49,7 +49,7 @@
 
 
     def has_doc(self, docid):
-        return self._rev_index.has_key(docid) > 0 
+        return bool(self._rev_index.has_key(docid))
 
 
     def index_doc(self, docid, value):