From 6a971163ac330fafd341ff61b3da872f35ca24e6 Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 20 Dec 2019 19:36:48 +0000 Subject: [PATCH] Fix calls to super from old-style classes. --- ndiff/ndiff.py | 2 +- zenmap/radialnet/core/XMLHandler.py | 2 +- zenmap/zenmapGUI/ScriptInterface.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ndiff/ndiff.py b/ndiff/ndiff.py index 74fbefdbb..85abba411 100755 --- a/ndiff/ndiff.py +++ b/ndiff/ndiff.py @@ -1190,7 +1190,7 @@ class NmapContentHandler(xml.sax.handler.ContentHandler): that is filled in and can be read back again once the parse method is finished.""" def __init__(self, scan): - super(NmapContentHandler, self).__init__() + xml.sax.handler.ContentHandler.__init__(self) self.scan = scan # We keep a stack of the elements we've seen, pushing on start and diff --git a/zenmap/radialnet/core/XMLHandler.py b/zenmap/radialnet/core/XMLHandler.py index 3824a8b46..9c506ea1e 100644 --- a/zenmap/radialnet/core/XMLHandler.py +++ b/zenmap/radialnet/core/XMLHandler.py @@ -313,7 +313,7 @@ class XMLReader(xml.sax.ContentHandler): def __init__(self, file=None): """ """ - super(XMLReader, self).__init__() + xml.sax.ContentHandler.__init__(self) self.__text = "" self.__status = [] diff --git a/zenmap/zenmapGUI/ScriptInterface.py b/zenmap/zenmapGUI/ScriptInterface.py index 58e64cf75..469021577 100644 --- a/zenmap/zenmapGUI/ScriptInterface.py +++ b/zenmap/zenmapGUI/ScriptInterface.py @@ -191,7 +191,7 @@ class ScriptHelpXMLContentHandler (xml.sax.handler.ContentHandler): other information like categories and description, but all it gets is filenames. (ScriptMetadata gets the other information.)""" def __init__(self): - super(ScriptHelpXMLContentHandler, self).__init__() + xml.sax.handler.ContentHandler.__init__(self) self.script_filenames = [] self.scripts_dir = None self.nselib_dir = None