Mercurial > repos > bcclaywell > argo_navis
comparison venv/lib/python2.7/site-packages/docutils/writers/pseudoxml.py @ 0:d67268158946 draft
planemo upload commit a3f181f5f126803c654b3a66dd4e83a48f7e203b
| author | bcclaywell |
|---|---|
| date | Mon, 12 Oct 2015 17:43:33 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:d67268158946 |
|---|---|
| 1 # $Id: pseudoxml.py 7320 2012-01-19 22:33:02Z milde $ | |
| 2 # Author: David Goodger <goodger@python.org> | |
| 3 # Copyright: This module has been placed in the public domain. | |
| 4 | |
| 5 """ | |
| 6 Simple internal document tree Writer, writes indented pseudo-XML. | |
| 7 """ | |
| 8 | |
| 9 __docformat__ = 'reStructuredText' | |
| 10 | |
| 11 | |
| 12 from docutils import writers | |
| 13 | |
| 14 | |
| 15 class Writer(writers.Writer): | |
| 16 | |
| 17 supported = ('pprint', 'pformat', 'pseudoxml') | |
| 18 """Formats this writer supports.""" | |
| 19 | |
| 20 config_section = 'pseudoxml writer' | |
| 21 config_section_dependencies = ('writers',) | |
| 22 | |
| 23 output = None | |
| 24 """Final translated form of `document`.""" | |
| 25 | |
| 26 def translate(self): | |
| 27 self.output = self.document.pformat() | |
| 28 | |
| 29 def supports(self, format): | |
| 30 """This writer supports all format-specific elements.""" | |
| 31 return True |
