dactyl_style_checker.py 文件源码

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

项目:dactyl 作者: ripple 项目源码 文件源码
def get_overrides(soup):
    overrides = []
    comments = soup.find_all(string=lambda text:isinstance(text,Comment))
    for comment in comments:
        m = re.match(OVERRIDE_COMMENT_REGEX, comment)
        if m:
            new_overrides = m.group(1).split(",")
            new_overrides = [o.strip() for o in new_overrides]
            logger.info("Overrides found: %s" % new_overrides)
            overrides += new_overrides
    return overrides
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号