/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/rst2html.py

  • Committer: Andrew Bennetts
  • Date: 2008-01-04 03:12:11 UTC
  • mfrom: (3164 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3320.
  • Revision ID: andrew.bennetts@canonical.com-20080104031211-wy4uxo2j4elvip1j
Merge from bzr.dev.

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