flake8_rst_docstrings.py 文件源码

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

项目:flake8-rst-docstrings 作者: peterjc 项目源码 文件源码
def source(self):
        """Return the source code for the definition."""
        full_src = self._source[self._slice]

        def is_empty_or_comment(line):
            return line.strip() == '' or line.strip().startswith('#')

        filtered_src = dropwhile(is_empty_or_comment, reversed(full_src))
        return ''.join(reversed(list(filtered_src)))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号