ACIL FM
Dark
Refresh
Current DIR:
/opt/imunify360/venv/lib/python3.11/site-packages/docutils/transforms
/
opt
imunify360
venv
lib
python3.11
site-packages
docutils
transforms
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
__pycache__
-
chmod
Open
Rename
Delete
components.py
2.1 MB
chmod
View
DL
Edit
Rename
Delete
frontmatter.py
20.87 MB
chmod
View
DL
Edit
Rename
Delete
misc.py
4.76 MB
chmod
View
DL
Edit
Rename
Delete
parts.py
6.75 MB
chmod
View
DL
Edit
Rename
Delete
peps.py
10.85 MB
chmod
View
DL
Edit
Rename
Delete
references.py
35.96 MB
chmod
View
DL
Edit
Rename
Delete
universal.py
12.25 MB
chmod
View
DL
Edit
Rename
Delete
writer_aux.py
2.99 MB
chmod
View
DL
Edit
Rename
Delete
__init__.py
6.71 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/imunify360/venv/lib/python3.11/site-packages/docutils/transforms/components.py
# $Id: components.py 9037 2022-03-05 23:31:10Z milde $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ Docutils component-related transforms. """ from docutils.transforms import Transform __docformat__ = 'reStructuredText' class Filter(Transform): """ Include or exclude elements which depend on a specific Docutils component. For use with `nodes.pending` elements. A "pending" element's dictionary attribute ``details`` must contain the keys "component" and "format". The value of ``details['component']`` must match the type name of the component the elements depend on (e.g. "writer"). The value of ``details['format']`` is the name of a specific format or context of that component (e.g. "html"). If the matching Docutils component supports that format or context, the "pending" element is replaced by the contents of ``details['nodes']`` (a list of nodes); otherwise, the "pending" element is removed. For example, up to version 0.17, the reStructuredText "meta" directive created a "pending" element containing a "meta" element (in ``pending.details['nodes']``). Only writers (``pending.details['component'] == 'writer'``) supporting the "html", "latex", or "odf" formats (``pending.details['format'] == 'html,latex,odf'``) included the "meta" element; it was deleted from the output of all other writers. This transform is no longer used by Docutils, it may be removed in future. """ # TODO: clean up or keep this for 3rd party (or possible future) use? # (GM 2021-05-18) default_priority = 780 def apply(self): pending = self.startnode component_type = pending.details['component'] # 'reader' or 'writer' formats = (pending.details['format']).split(',') component = self.document.transformer.components[component_type] for format in formats: if component.supports(format): pending.replace_self(pending.details['nodes']) break else: pending.parent.remove(pending)
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply