loop: use python 3 style base class initialization

Use the canonical Python3 usage of "super" without any arguments.
pylint 2.6.0 started to actually warn about this.
This commit is contained in:
Christian Kellner 2020-10-30 16:02:00 +01:00 committed by David Rheinsberg
parent d9168ee625
commit 373f474769

View file

@ -14,7 +14,7 @@ __all__ = [
class UnexpectedDevice(Exception):
def __init__(self, expected_minor, rdev, mode):
super(UnexpectedDevice, self).__init__()
super().__init__()
self.expected_minor = expected_minor
self.rdev = rdev
self.mode = mode