[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/KeywordIndex - KeywordIndex.py:1.10

Jeremy Hylton jeremy@zope.com
Thu, 20 Jun 2002 16:02:45 -0400


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/KeywordIndex
In directory cvs.zope.org:/tmp/cvs-serv20823

Modified Files:
	KeywordIndex.py 
Log Message:
Remove unused imports
and unused definition of _marker


=== Zope/lib/python/Products/PluginIndexes/KeywordIndex/KeywordIndex.py 1.9 => 1.10 ===
 
 from zLOG import LOG, ERROR
-from types import StringType
 from BTrees.OOBTree import OOSet, difference
 
-from Globals import Persistent, DTMLFile
-from Acquisition import Implicit
-
+from Globals import DTMLFile
 from Products.PluginIndexes import PluggableIndex 
 
 from Products.PluginIndexes.common.UnIndex import UnIndex 
 
-_marker = []
-
 class KeywordIndex(UnIndex):
 
     __implements__ = (PluggableIndex.PluggableIndexInterface,)
@@ -74,8 +69,9 @@
         else:
             # we have an existing entry for this document, and we need
             # to figure out if any of the keywords have actually changed
-            if type(oldKeywords) is not OOSet: oldKeywords=OOSet(oldKeywords)
-            newKeywords=OOSet(newKeywords)
+            if type(oldKeywords) is not OOSet:
+                oldKeywords = OOSet(oldKeywords)
+            newKeywords = OOSet(newKeywords)
             fdiff = difference(oldKeywords, newKeywords)
             rdiff = difference(newKeywords, oldKeywords)
             if fdiff or rdiff: