From 373f474769aeb99dbbd01c74e84ef353b613ef85 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 30 Oct 2020 16:02:00 +0100 Subject: [PATCH] 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. --- osbuild/loop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osbuild/loop.py b/osbuild/loop.py index a52e76fb..bc884424 100644 --- a/osbuild/loop.py +++ b/osbuild/loop.py @@ -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