当前位置: 首页>>代码示例>>Python>>正文


Python ContentHandler.__init__方法代码示例

本文整理汇总了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) 
开发者ID:cea-sec,项目名称:ivre,代码行数:23,代码来源:xmlnmap.py

示例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() 
开发者ID:alesnav,项目名称:p2ptv-pi,代码行数:7,代码来源:upnp.py

示例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 
开发者ID:krintoxi,项目名称:NoobSec-Toolkit,代码行数:11,代码来源:handler.py

示例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 
开发者ID:krintoxi,项目名称:NoobSec-Toolkit,代码行数:9,代码来源:html.py

示例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 
开发者ID:krintoxi,项目名称:NoobSec-Toolkit,代码行数:13,代码来源:banner.py

示例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 
开发者ID:JFox,项目名称:aws-lambda-lxml,代码行数:13,代码来源:sax.py

示例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) 
开发者ID:txamqp,项目名称:txamqp,代码行数:10,代码来源:xmlutil.py

示例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 
开发者ID:sabri-zaki,项目名称:EasY_HaCk,代码行数:11,代码来源:html.py


注:本文中的xml.sax.handler.ContentHandler.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。