mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-06 17:24:23 +01:00
Improving code for Python 3
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
238047c0f3
commit
8cb73f329a
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class RepoInit:
|
||||||
|
|
||||||
def fetch(self):
|
def fetch(self):
|
||||||
if self.repo in self.meta.default_repositories:
|
if self.repo in self.meta.default_repositories:
|
||||||
exec("self._init_{0}()".format(self.repo))
|
exec(f"self._init_{self.repo}()")
|
||||||
else:
|
else:
|
||||||
exec("self._init_custom()")
|
exec("self._init_custom()")
|
||||||
self.lib = self.meta.lib_path + "{0}_repo/PACKAGES.TXT".format(
|
self.lib = self.meta.lib_path + "{0}_repo/PACKAGES.TXT".format(
|
||||||
|
|
Loading…
Reference in a new issue