From 8e341f918c586e0b1729ae0813949c178ca53715 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 11 Jan 2020 00:26:43 +0100 Subject: [PATCH] Improving code for Python 3 Signed-off-by: Dimitris Zlatanidis --- slpkg/checks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slpkg/checks.py b/slpkg/checks.py index 14949e82..58ec3435 100644 --- a/slpkg/checks.py +++ b/slpkg/checks.py @@ -33,6 +33,7 @@ class Updates: """ def __init__(self, repo): self.repo = repo + self.meta = _meta_ self.green = _meta_.color["GREEN"] self.grey = _meta_.color["GREY"] self.endc = _meta_.color["ENDC"] @@ -120,7 +121,7 @@ class Updates: def print_status(self, repo): """Print status """ - print(" {0}{1}{2}".format(repo, " " * (19 - len(repo)), self.st)) + print(f" {repo}{' ' * (19 - len(repo))}{self.st}") def summary(self): """Print summary