Skip to content

Commit

Permalink
Use new-style classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jrha committed Jul 17, 2024
1 parent 7f354bd commit c5c84e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down Expand Up @@ -163,7 +163,7 @@ def help(self):
'''


class Config:
class Config(object):
def __init__(self):
self.read(OPTIONS.configfile)

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c5c84e9

Please sign in to comment.