buildhtml.py 文件源码

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

项目:w4py 作者: Cito 项目源码 文件源码
def __init__(self):
        self.publishers = {
            '': Struct(components=(pep.Reader, rst.Parser, pep_html.Writer,
                                   SettingsSpec)),
            '.txt': Struct(components=(rst.Parser, standalone.Reader,
                                       html5_polyglot.Writer, SettingsSpec),
                           reader_name='standalone',
                           writer_name='html5'),
            'PEPs': Struct(components=(rst.Parser, pep.Reader,
                                       pep_html.Writer, SettingsSpec),
                           reader_name='pep',
                           writer_name='pep_html')}
        """Publisher-specific settings.  Key '' is for the front-end script
        itself.  ``self.publishers[''].components`` must contain a superset of
        all components used by individual publishers."""

        self.setup_publishers()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号