plot_directive.py 文件源码

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

项目:terra 作者: UW-Hydro 项目源码 文件源码
def remove_coding(text):
    """
    Remove the coding comment, which six.exec_ doesn't like.
    """
    sub_re = re.compile("^#\s*-\*-\s*coding:\s*.*-\*-$", flags=re.MULTILINE)
    return sub_re.sub("", text)

# ------------------------------------------------------------------------------
# Template
# ------------------------------------------------------------------------------
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号