Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.217.14
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
docutils /
readers /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
3.38
KB
-rw-r--r--
2017-04-04 16:39
__init__.pyc
4.04
KB
-rw-r--r--
2017-04-04 16:40
doctree.py
1.57
KB
-rw-r--r--
2017-04-04 16:39
doctree.pyc
1.69
KB
-rw-r--r--
2017-04-04 16:40
pep.py
1.52
KB
-rw-r--r--
2017-04-04 16:39
pep.pyc
1.99
KB
-rw-r--r--
2017-04-04 16:40
standalone.py
2.29
KB
-rw-r--r--
2017-04-04 16:39
standalone.pyc
2.29
KB
-rw-r--r--
2017-04-04 16:40
Save
Rename
# $Id: doctree.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: Martin Blais <blais@furius.ca> # Copyright: This module has been placed in the public domain. """Reader for existing document trees.""" from docutils import readers, utils, transforms class Reader(readers.ReReader): """ Adapt the Reader API for an existing document tree. The existing document tree must be passed as the ``source`` parameter to the `docutils.core.Publisher` initializer, wrapped in a `docutils.io.DocTreeInput` object:: pub = docutils.core.Publisher( ..., source=docutils.io.DocTreeInput(document), ...) The original document settings are overridden; if you want to use the settings of the original document, pass ``settings=document.settings`` to the Publisher call above. """ supported = ('doctree',) config_section = 'doctree reader' config_section_dependencies = ('readers',) def parse(self): """ No parsing to do; refurbish the document tree instead. Overrides the inherited method. """ self.document = self.input # Create fresh Transformer object, to be populated from Writer # component. self.document.transformer = transforms.Transformer(self.document) # Replace existing settings object with new one. self.document.settings = self.settings # Create fresh Reporter object because it is dependent on # (new) settings. self.document.reporter = utils.new_reporter( self.document.get('source', ''), self.document.settings)