From b947a24b6ef6633cd4a68557e5fc87f09107aa13 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 8 May 2023 13:16:08 +0300 Subject: [PATCH] Updated for coding style --- slpkg/views/views.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/slpkg/views/views.py b/slpkg/views/views.py index 610e8492..f6ebd5fd 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -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']: