From 8cb73f329ac0e45315dd36bc915147cf7ec63904 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 15 Jan 2020 00:12:09 +0100 Subject: [PATCH] Improving code for Python 3 Signed-off-by: Dimitris Zlatanidis --- slpkg/binary/repo_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slpkg/binary/repo_init.py b/slpkg/binary/repo_init.py index f6367977..71170624 100644 --- a/slpkg/binary/repo_init.py +++ b/slpkg/binary/repo_init.py @@ -41,7 +41,7 @@ class RepoInit: def fetch(self): if self.repo in self.meta.default_repositories: - exec("self._init_{0}()".format(self.repo)) + exec(f"self._init_{self.repo}()") else: exec("self._init_custom()") self.lib = self.meta.lib_path + "{0}_repo/PACKAGES.TXT".format(