mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01:29 +00:00
Fix calls to super from old-style classes.
This commit is contained in:
@@ -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
|
that is filled in and can be read back again once the parse method is
|
||||||
finished."""
|
finished."""
|
||||||
def __init__(self, scan):
|
def __init__(self, scan):
|
||||||
super(NmapContentHandler, self).__init__()
|
xml.sax.handler.ContentHandler.__init__(self)
|
||||||
self.scan = scan
|
self.scan = scan
|
||||||
|
|
||||||
# We keep a stack of the elements we've seen, pushing on start and
|
# We keep a stack of the elements we've seen, pushing on start and
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ class XMLReader(xml.sax.ContentHandler):
|
|||||||
def __init__(self, file=None):
|
def __init__(self, file=None):
|
||||||
"""
|
"""
|
||||||
"""
|
"""
|
||||||
super(XMLReader, self).__init__()
|
xml.sax.ContentHandler.__init__(self)
|
||||||
self.__text = ""
|
self.__text = ""
|
||||||
self.__status = []
|
self.__status = []
|
||||||
|
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ class ScriptHelpXMLContentHandler (xml.sax.handler.ContentHandler):
|
|||||||
other information like categories and description, but all it gets is
|
other information like categories and description, but all it gets is
|
||||||
filenames. (ScriptMetadata gets the other information.)"""
|
filenames. (ScriptMetadata gets the other information.)"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(ScriptHelpXMLContentHandler, self).__init__()
|
xml.sax.handler.ContentHandler.__init__(self)
|
||||||
self.script_filenames = []
|
self.script_filenames = []
|
||||||
self.scripts_dir = None
|
self.scripts_dir = None
|
||||||
self.nselib_dir = None
|
self.nselib_dir = None
|
||||||
|
|||||||
Reference in New Issue
Block a user