From 1282878635cf02cb0470bdf9ef5b3d5850d084f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Mon, 29 Jul 2024 10:54:02 +0200 Subject: [PATCH] Use `super()` without argument to make pylint happy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- messaging/copr_messaging/private/hierarchy.py | 6 +++--- messaging/copr_messaging/schema.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/messaging/copr_messaging/private/hierarchy.py b/messaging/copr_messaging/private/hierarchy.py index c846fa6ec..061f90052 100644 --- a/messaging/copr_messaging/private/hierarchy.py +++ b/messaging/copr_messaging/private/hierarchy.py @@ -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. @@ -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, ) @@ -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, ) diff --git a/messaging/copr_messaging/schema.py b/messaging/copr_messaging/schema.py index 67f90449d..c381a0e38 100644 --- a/messaging/copr_messaging/schema.py +++ b/messaging/copr_messaging/schema.py @@ -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, ) @@ -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, )