From c5c84e9cac8008f4f5adf63eefbb0a6d1f222c8b Mon Sep 17 00:00:00 2001 From: James Adams Date: Mon, 15 Jul 2024 16:00:48 +0100 Subject: [PATCH] Use new-style classes --- mrepo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mrepo.py b/mrepo.py index 7da93c6..c475d43 100755 --- a/mrepo.py +++ b/mrepo.py @@ -61,7 +61,7 @@ _SUBST_SUB = re.compile(r'\$\{?(\w+)\}?').sub -class Options: +class Options(object): def __init__(self, args): self.configfile = '/etc/mrepo.conf' self.dists = [] @@ -163,7 +163,7 @@ def help(self): ''' -class Config: +class Config(object): def __init__(self): self.read(OPTIONS.configfile) @@ -326,7 +326,7 @@ def getoption(self, section, option, var): return var -class Dist: +class Dist(object): def __init__(self, dist, arch, config): self.arch = arch self.dist = dist @@ -436,7 +436,7 @@ def keyfunc(x): repo.changed = True -class Repo: +class Repo(object): def __init__(self, name, url, dist, config): self.name = name self.url = url