Skip to content

Commit

Permalink
100% for keyword/index
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Nov 2, 2017
1 parent fefe04d commit 866b0f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/zope/index/keyword/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
##############################################################################
"""Keyword index
"""
import BTrees
import six
from persistent import Persistent
import BTrees
from BTrees.Length import Length
from persistent import Persistent


from zope.index.interfaces import IInjection, IStatistics, IIndexSearch
from zope.index.keyword.interfaces import IKeywordQuerying
Expand Down Expand Up @@ -126,7 +127,7 @@ def unindex_doc(self, docid):

try:
del self._rev_index[docid]
except KeyError: #pragma NO COVERAGE
except KeyError: # pragma: no cover
# 'WAAA! Inconsistent'
pass

Expand Down Expand Up @@ -185,8 +186,7 @@ def search(self, query, operator='and'):

if rs:
return rs
else:
return self.family.IF.Set()
return self.family.IF.Set()

def apply(self, query):
operator = 'and'
Expand Down

0 comments on commit 866b0f7

Please sign in to comment.