listener.py 文件源码

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

项目:qface 作者: Pelagicore 项目源码 文件源码
def parse_annotations(self, ctx, symbol):
        assert ctx and symbol
        if ctx.comment:
            comment = ctx.comment.text
            symbol.comment = comment
        if ctx.tagSymbol():
            lines = [tag.line.text[1:] for tag in ctx.tagSymbol()]
            try:
                data = yaml.load('\n'.join(lines), Loader=Loader)
                symbol._tags = data
            except yaml.YAMLError as exc:
                click.secho(exc, fg='red')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号