Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2023-05-08 13:16:08 +03:00
parent f0b87f9f2d
commit b947a24b6e

View file

@ -131,7 +131,6 @@ class ViewMessage(Configs):
""" View downloaded packages. """
mode = 'download'
self.download_only: Path = directory
self.ascii.draw_package_title_box('The following packages will be downloaded:',
'slpkg download packages')
@ -147,7 +146,6 @@ class ViewMessage(Configs):
for pkg in packages:
pkgs.append(pkg)
requires = self.session.query(
LogsDependencies.requires).filter(
LogsDependencies.name == pkg).first()
@ -205,7 +203,6 @@ class ViewMessage(Configs):
text: str = f'There are {len(choices)} dependencies:'
code, tags = self.dialogbox.checklist(text, dependencies, title, height,
width, list_height, choices)
if not code:
return dependencies
@ -276,7 +273,6 @@ class ViewMessage(Configs):
def logs_packages(self, dependencies: list) -> None:
""" View the logging packages. """
print('The following logs will be removed:\n')
for dep in dependencies:
print(f'{self.yellow}{dep[0]}{self.endc}')
self.ascii.draw_log_package(dep[1])
@ -285,7 +281,6 @@ class ViewMessage(Configs):
def question(self) -> None:
""" Manage to proceed. """
if not self.option_for_yes and self.ask_question:
answer: str = input('\nDo you want to continue? [y/N] ')
if answer not in ['Y', 'y']: