Run black on sources

This commit is contained in:
Griatch 2020-09-19 14:02:03 +02:00
parent 16874645e7
commit a3c34f5f39
16 changed files with 58 additions and 60 deletions

View file

@ -331,7 +331,6 @@ class EvMore(object):
# goto top of the text
self.page_top()
# default paginators - responsible for extracting a specific page number
def paginator_index(self, pageno):
@ -343,7 +342,7 @@ class EvMore(object):
Paginate by slice. This is done with an eye on memory efficiency (usually for
querysets); to avoid fetching all objects at the same time.
"""
return self._data[pageno * self.height: pageno * self.height + self.height]
return self._data[pageno * self.height : pageno * self.height + self.height]
def paginator_django(self, pageno):
"""

View file

@ -1918,9 +1918,11 @@ def at_search_result(matches, caller, query="", quiet=False, **kwargs):
# we need to consider Commands, where .aliases is a list
aliases = result.aliases.all() if hasattr(result.aliases, "all") else result.aliases
# remove any pluralization aliases
aliases = [alias for alias in aliases if
hasattr(alias, "category")
and alias.category not in ("plural_key", )]
aliases = [
alias
for alias in aliases
if hasattr(alias, "category") and alias.category not in ("plural_key",)
]
error += _MULTIMATCH_TEMPLATE.format(
number=num + 1,
name=result.get_display_name(caller)