Improving code for Python 3

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2020-01-15 00:12:09 +01:00
parent 238047c0f3
commit 8cb73f329a

View file

@ -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(