Remove Python2'isms from classes

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2023-11-16 06:18:19 +02:00
parent a03b420c75
commit 49f1fbbad1
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

View File

@ -19,7 +19,7 @@ from euscan.helpers import dict_to_xml
mirrors_ = None mirrors_ = None
class ProgressHandler(object): class ProgressHandler:
def __init__(self, progress_bar): def __init__(self, progress_bar):
self.curval = 0 self.curval = 0
self.maxval = 0 self.maxval = 0
@ -152,17 +152,17 @@ class EOutputMem(EOutput):
""" """
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(EOutputMem, self).__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self.out = StringIO() self.out = StringIO()
def getvalue(self): def getvalue(self):
return self.out.getvalue() return self.out.getvalue()
def _write(self, f, msg): 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 Class that handles output for euscan
""" """