Skip to content

Commit

Permalink
Please flake8.
Browse files Browse the repository at this point in the history
modified:   src/Products/ZCatalog/ZCatalog.py
modified:   src/Products/ZCatalog/tests/test_zcatalog.py
  • Loading branch information
jugmac00 committed Nov 14, 2019
1 parent 3f8464f commit 5c4899b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Products/ZCatalog/ZCatalog.py
Expand Up @@ -871,7 +871,7 @@ def availableIndexes(self):
"""
return sorted(
self.Indexes.filtered_meta_types(),
key=lambda meta_types: meta_types['name'])
key=lambda meta_types: meta_types['name'])

@security.protected(manage_zcatalog_indexes)
def delIndex(self, name):
Expand Down
2 changes: 1 addition & 1 deletion src/Products/ZCatalog/tests/test_zcatalog.py
Expand Up @@ -318,7 +318,7 @@ def testAvailableIndexes(self):
# work in progress
self._catalog.addIndex('title', self._makeOneIndex('title'))
# availableIndexes currently returns an empty list
sorted_indexes = self._catalog.availableIndexes()
self._catalog.availableIndexes()

def testDelIndex(self):
self._catalog.addIndex('title', self._makeOneIndex('title'))
Expand Down

0 comments on commit 5c4899b

Please sign in to comment.