Add: some doc to PreLoadUnicodePage.
[docutils.git] / tools / pep.py
blob5aa4b8afcad9c4d73c46ccdfb475887d6248068e
1 #!/usr/bin/env python
3 # Author: David Goodger
4 # Contact: goodger@users.sourceforge.net
5 # Revision: $Revision$
6 # Date: $Date$
7 # Copyright: This module has been placed in the public domain.
9 """
10 A minimal front end to the Docutils Publisher, producing HTML from PEP
11 (Python Enhancement Proposal) documents.
12 """
14 try:
15 import locale
16 locale.setlocale(locale.LC_ALL, '')
17 except:
18 pass
20 from docutils.core import publish_cmdline, default_description
23 description = ('Generates (X)HTML from reStructuredText-format PEP files. '
24 + default_description)
26 publish_cmdline(reader_name='pep', writer_name='pep_html',
27 description=description)