common.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:Eagle 作者: magerx 项目源码 文件源码
def parseXmlFile(xmlFile, handler):
    """
    Parses XML file by a given handler
    """

    try:
        with contextlib.closing(StringIO(readCachedFileContent(xmlFile))) as stream:
            parse(stream, handler)
    except (SAXParseException, UnicodeError), ex:
        errMsg = "something seems to be wrong with "
        errMsg += "the file '%s' ('%s'). Please make " % (xmlFile, ex)
        errMsg += "sure that you haven't made any changes to it"
        raise SqlmapInstallationException, errMsg
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号