mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
FIxed D401,D210
This commit is contained in:
parent
3c3441f42c
commit
56b7bb04c4
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ class SearchPackage(Configs): # pylint: disable=[R0902]
|
||||||
self.summary_of_searching()
|
self.summary_of_searching()
|
||||||
|
|
||||||
def search_to_all_repositories(self) -> None:
|
def search_to_all_repositories(self) -> None:
|
||||||
"""Search package name to all enabled repositories. """
|
"""Search package name to all enabled repositories."""
|
||||||
all_data: dict = self.data
|
all_data: dict = self.data
|
||||||
for name, repo in all_data.items():
|
for name, repo in all_data.items():
|
||||||
self.repo_data: dict = repo
|
self.repo_data: dict = repo
|
||||||
|
@ -66,7 +66,7 @@ class SearchPackage(Configs): # pylint: disable=[R0902]
|
||||||
}
|
}
|
||||||
|
|
||||||
def summary_of_searching(self) -> None:
|
def summary_of_searching(self) -> None:
|
||||||
"""Prints the result."""
|
"""Print the result."""
|
||||||
try:
|
try:
|
||||||
repo_length: int = max(len(repo['repository']) for repo in self.data_dict.values())
|
repo_length: int = max(len(repo['repository']) for repo in self.data_dict.values())
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
Loading…
Reference in a new issue