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()
评论列表
文章目录