Skip to content

Commit

Permalink
Use super() without argument to make pylint happy
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard authored and FrostyX committed Sep 23, 2024
1 parent f3b1643 commit 1559b85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions messaging/copr_messaging/private/hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, *args, **kwargs):
body = body['msg']
kwargs['body'] = body

super(_CoprMessage, self).__init__(*args, **kwargs)
super().__init__(*args, **kwargs)

"""
Base class that all Copr messages should inherit from.
Expand All @@ -54,7 +54,7 @@ def app_name(self):
class _CoprProjectMessage(_CoprMessage):
def _str_prefix(self):
return '{0} in project "{1}"'.format(
super(_CoprProjectMessage, self)._str_prefix(),
super()._str_prefix(),
self.project_full_name,
)

Expand Down Expand Up @@ -85,7 +85,7 @@ def project_full_name(self):
class _BuildMessage(_CoprProjectMessage):
def _str_prefix(self):
return '{0}: build {1}'.format(
super(_BuildMessage, self)._str_prefix(),
super()._str_prefix(),
self.build_id,
)

Expand Down
4 changes: 2 additions & 2 deletions messaging/copr_messaging/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def status(self):
def summary(self):
"""A one-line, human-readable representation of this message."""
return '{0}: chroot "{1}" ended as "{2}".'.format(
super(BuildChrootEnded, self)._str_prefix(),
super()._str_prefix(),
self.chroot,
self.status,
)
Expand All @@ -67,7 +67,7 @@ class BuildChrootStarted(_BuildChrootMessage):
def summary(self):
"""A one-line, human-readable representation of this message."""
return '{0}: chroot "{1}" started.'.format(
super(BuildChrootStarted, self)._str_prefix(),
super()._str_prefix(),
self.chroot,
)

Expand Down

0 comments on commit 1559b85

Please sign in to comment.