mirror of
https://github.com/nmap/nmap.git
synced 2026-01-01 04:19:02 +00:00
Fix calls to super from old-style classes.
This commit is contained in:
@@ -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 = []
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user