filter.py 文件源码

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

项目:Ellis 作者: Frzk 项目源码 文件源码
def __init__(self, regexes):
        """
        Initializes a newly created Filter with the given list of
        :class:`re.RegexObject`.

        *regexes* is a list of :class:`re.RegexObject`s.

        Raises :class:`exceptions.ValueError` if the given list evaluates to
        False (empty list, None, ...)
        """
        if regexes:
            list.__init__(self, regexes)
        else:
            raise ValueError("Unable to initialize a Filter without at least "
                             "one valid pattern, please fix your config file")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号