~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/rst2html.py

  • Committer: John Arbash Meinel
  • Date: 2008-01-04 01:48:32 UTC
  • mto: This revision was merged to the branch mainline in revision 3165.
  • Revision ID: john@arbash-meinel.com-20080104014832-1xwbcbueft0cyqtc
a small bit of cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
A minimal front end to the Docutils Publisher, producing HTML.
11
11
"""
12
12
 
 
13
# modified version for 
 
14
 
13
15
try:
14
16
    import locale
15
17
    locale.setlocale(locale.LC_ALL, '')
19
21
import docutils
20
22
from docutils.core import publish_cmdline, default_description
21
23
 
22
 
if True: # this is still required in the distutils trunk as-at June 2008.
 
24
 
 
25
if docutils.__version__ <= '0.4.1':
23
26
    from docutils.parsers.rst.states import Body
24
27
    # we have some option names that contain dot; which is not allowed by
25
28
    # python-docutils 0.4-4 -- so monkeypatch in a better pattern