當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。