1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 06:01:28 +00:00

Fix calls to super from old-style classes.

This commit is contained in:
dmiller
2019-12-20 19:36:48 +00:00
parent ccdb816552
commit 6a971163ac
3 changed files with 3 additions and 3 deletions

View File

@@ -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