Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
andbag committed Apr 5, 2018
1 parent cfff054 commit 9a8ea41
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Products/PluginIndexes/KeywordIndex/KeywordIndex.py
Expand Up @@ -11,7 +11,6 @@
#
##############################################################################

import sys
from logging import getLogger

from BTrees.OOBTree import difference
Expand All @@ -37,7 +36,7 @@ class KeywordIndex(UnIndex):
This should have an _apply_index that returns a relevance score
"""
meta_type = "KeywordIndex"
meta_type = 'KeywordIndex'
query_options = ('query', 'range', 'not', 'operator')

manage_options = (
Expand Down Expand Up @@ -135,9 +134,9 @@ def unindex_object(self, documentId):
try:
del self._unindex[documentId]
except KeyError:
LOG.debug('%s: Attempt to unindex nonexistent '
'document with id %s' %
(self.__class__.__name__, documentId),
LOG.debug('{0}: Attempt to unindex nonexistent '
'document with id {1}'.format(
self.__class__.__name__, documentId),
exc_info=True)

manage = manage_main = DTMLFile('dtml/manageKeywordIndex', globals())
Expand Down

0 comments on commit 9a8ea41

Please sign in to comment.