diff --git a/slpkg/blacklist.py b/slpkg/blacklist.py index 762b3cad..dcc8f751 100644 --- a/slpkg/blacklist.py +++ b/slpkg/blacklist.py @@ -67,30 +67,33 @@ class BlackList(Utils): def black_listed(self): """Print blacklist packages """ - print("Packages in the blacklist:\n") + print("Packages in the blacklist:") for black in list(self.black_filter()): if black: print(f"{self.green}{black}{self.endc}") + print() def black_add(self, pkgs): """Add blacklist packages if not exist """ blacklist = list(self.black_filter()) pkgs = set(pkgs) - print("Add packages in the blacklist:\n") + print("Add packages in the blacklist:") with open(self.blackfile, "a") as black_conf: for pkg in pkgs: if pkg not in blacklist: print(f"{self.green}{pkg}{self.endc}") black_conf.write(pkg + "\n") + print() def black_remove(self, pkgs): """Remove packages from blacklist """ - print("Remove packages from the blacklist:\n") + print("Remove packages from the blacklist:") with open(self.blackfile, "w") as remove: for line in self.black_conf.splitlines(): if line not in pkgs: remove.write(line + "\n") else: - print(f"{self.red}{line}{self.endc}") \ No newline at end of file + print(f"{self.red}{line}{self.endc}") + print()