本文整理汇总了Python中xml.sax.handler.ContentHandler.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ContentHandler.__init__方法的具体用法?Python ContentHandler.__init__怎么用?Python ContentHandler.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xml.sax.handler.ContentHandler
的用法示例。
在下文中一共展示了ContentHandler.__init__方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from xml.sax.handler import ContentHandler [as 别名]
# 或者: from xml.sax.handler.ContentHandler import __init__ [as 别名]
def __init__(self, fname, filehash, needports=False, needopenports=False,
masscan_probes=None, **_):
ContentHandler.__init__(self)
self._needports = needports
self._needopenports = needopenports
self._curscan = None
self._curscript = None
self._curhost = None
self._curextraports = None
self._curport = None
self._curtrace = None
self._curdata = None
self._curtable = {}
self._curtablepath = []
self._curhostnames = None
self._fname = fname
self._filehash = filehash
self.scanner = "nmap"
self.scan_doc_saved = False
self.masscan_probes = [] if masscan_probes is None else masscan_probes
utils.LOGGER.debug("READING %r (%r)", fname, self._filehash)
示例2: __init__
# 需要导入模块: from xml.sax.handler import ContentHandler [as 别名]
# 或者: from xml.sax.handler.ContentHandler import __init__ [as 别名]
def __init__(self):
self.services = {}
self.lastdiscovertime = 0
self.local_ip_list = IP_List()
self.local_ip_list.set_intranet_addresses()
示例3: __init__
# 需要导入模块: from xml.sax.handler import ContentHandler [as 别名]
# 或者: from xml.sax.handler.ContentHandler import __init__ [as 别名]
def __init__(self, banner, info):
ContentHandler.__init__(self)
self._banner = sanitizeStr(banner)
self._regexp = None
self._match = None
self._dbmsVersion = None
self._techVersion = None
self._info = info
示例4: __init__
# 需要导入模块: from xml.sax.handler import ContentHandler [as 别名]
# 或者: from xml.sax.handler.ContentHandler import __init__ [as 别名]
def __init__(self, page):
ContentHandler.__init__(self)
self._dbms = None
self._page = page
self.dbms = None
示例5: __init__
# 需要导入模块: from xml.sax.handler import ContentHandler [as 别名]
# 或者: from xml.sax.handler.ContentHandler import __init__ [as 别名]
def __init__(self, banner, info):
ContentHandler.__init__(self)
self._banner = sanitizeStr(banner)
self._inVersion = False
self._inServicePack = False
self._release = None
self._version = ""
self._versionAlt = None
self._servicePack = ""
self._info = info
示例6: __init__
# 需要导入模块: from xml.sax.handler import ContentHandler [as 别名]
# 或者: from xml.sax.handler.ContentHandler import __init__ [as 别名]
def __init__(self, makeelement=None):
ContentHandler.__init__(self)
self._root = None
self._root_siblings = []
self._element_stack = []
self._default_ns = None
self._ns_mapping = { None : [None] }
self._new_mappings = {}
if makeelement is None:
makeelement = etree.Element
self._makeelement = makeelement
示例7: __init__
# 需要导入模块: from xml.sax.handler import ContentHandler [as 别名]
# 或者: from xml.sax.handler.ContentHandler import __init__ [as 别名]
def __init__(self, name, attrs=None, text=None, parent=None):
self.name = name
self.attrs = attrs
self.text = text
self.parent = parent
self.children = []
if parent is not None:
parent.children.append(self)
示例8: __init__
# 需要导入模块: from xml.sax.handler import ContentHandler [as 别名]
# 或者: from xml.sax.handler.ContentHandler import __init__ [as 别名]
def __init__(self, page):
ContentHandler.__init__(self)
self._dbms = None
self._page = (page or "")
self._lower_page = self._page.lower()
self._urldecoded_page = urldecode(self._page)
self.dbms = None