diff --git a/messaging/copr_messaging/private/hierarchy.py b/messaging/copr_messaging/private/hierarchy.py index ca3fe56ce..7aab72ecc 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 ab8b18023..5a0ebfe99 100644 --- a/messaging/copr_messaging/schema.py +++ b/messaging/copr_messaging/schema.py @@ -42,7 +42,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, ) @@ -65,7 +65,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, )