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 /
transforms /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
6.35
KB
-rw-r--r--
2017-04-04 16:39
__init__.pyc
5.93
KB
-rw-r--r--
2017-04-04 16:40
components.py
1.95
KB
-rw-r--r--
2017-04-04 16:39
components.pyc
2.37
KB
-rw-r--r--
2017-04-04 16:40
frontmatter.py
19
KB
-rw-r--r--
2017-04-04 16:39
frontmatter.pyc
16.82
KB
-rw-r--r--
2017-04-04 16:40
misc.py
4.77
KB
-rw-r--r--
2017-04-04 16:39
misc.pyc
4.44
KB
-rw-r--r--
2017-04-04 16:40
parts.py
6.82
KB
-rw-r--r--
2017-04-04 16:39
parts.pyc
6.95
KB
-rw-r--r--
2017-04-04 16:40
peps.py
10.8
KB
-rw-r--r--
2017-04-04 16:39
peps.pyc
10.88
KB
-rw-r--r--
2017-04-04 16:40
references.py
35.31
KB
-rw-r--r--
2017-04-04 16:39
references.pyc
27.76
KB
-rw-r--r--
2017-04-04 16:40
universal.py
10.35
KB
-rw-r--r--
2017-04-04 16:39
universal.pyc
9.93
KB
-rw-r--r--
2017-04-04 16:40
writer_aux.py
2.55
KB
-rw-r--r--
2017-04-04 16:39
writer_aux.pyc
2.82
KB
-rw-r--r--
2017-04-04 16:40
Save
Rename
# $Id: writer_aux.py 7808 2015-02-27 17:03:32Z milde $ # Author: Lea Wiemann <LeWiemann@gmail.com> # Copyright: This module has been placed in the public domain. """ Auxiliary transforms mainly to be used by Writer components. This module is called "writer_aux" because otherwise there would be conflicting imports like this one:: from docutils import writers from docutils.transforms import writers """ __docformat__ = 'reStructuredText' from docutils import nodes, utils, languages from docutils.transforms import Transform class Compound(Transform): """ Flatten all compound paragraphs. For example, transform :: <compound> <paragraph> <literal_block> <paragraph> into :: <paragraph> <literal_block classes="continued"> <paragraph classes="continued"> """ default_priority = 910 def apply(self): for compound in self.document.traverse(nodes.compound): first_child = True for child in compound: if first_child: if not isinstance(child, nodes.Invisible): first_child = False else: child['classes'].append('continued') # Substitute children for compound. compound.replace_self(compound[:]) class Admonitions(Transform): """ Transform specific admonitions, like this: <note> <paragraph> Note contents ... into generic admonitions, like this:: <admonition classes="note"> <title> Note <paragraph> Note contents ... The admonition title is localized. """ default_priority = 920 def apply(self): language = languages.get_language(self.document.settings.language_code, self.document.reporter) for node in self.document.traverse(nodes.Admonition): node_name = node.__class__.__name__ # Set class, so that we know what node this admonition came from. node['classes'].append(node_name) if not isinstance(node, nodes.admonition): # Specific admonition. Transform into a generic admonition. admonition = nodes.admonition(node.rawsource, *node.children, **node.attributes) title = nodes.title('', language.labels[node_name]) admonition.insert(0, title) node.replace_self(admonition)