From 49f1fbbad11c382de353a982d8719af6ac551ffe Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Thu, 16 Nov 2023 06:18:19 +0200 Subject: [PATCH] Remove Python2'isms from classes Signed-off-by: Alfred Wingate --- src/euscan/out.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/euscan/out.py b/src/euscan/out.py index ec49b62..c067069 100644 --- a/src/euscan/out.py +++ b/src/euscan/out.py @@ -19,7 +19,7 @@ from euscan.helpers import dict_to_xml mirrors_ = None -class ProgressHandler(object): +class ProgressHandler: def __init__(self, progress_bar): self.curval = 0 self.maxval = 0 @@ -152,17 +152,17 @@ class EOutputMem(EOutput): """ def __init__(self, *args, **kwargs): - super(EOutputMem, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) self.out = StringIO() def getvalue(self): return self.out.getvalue() def _write(self, f, msg): - super(EOutputMem, self)._write(self.out, msg) + super()._write(self.out, msg) -class EuscanOutput(object): +class EuscanOutput: """ Class that handles output for euscan """