Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
sphinx /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
builders
[ DIR ]
drwxr-xr-x
cmd
[ DIR ]
drwxr-xr-x
directives
[ DIR ]
drwxr-xr-x
domains
[ DIR ]
drwxr-xr-x
environment
[ DIR ]
drwxr-xr-x
ext
[ DIR ]
drwxr-xr-x
locale
[ DIR ]
drwxr-xr-x
pycode
[ DIR ]
drwxr-xr-x
search
[ DIR ]
drwxr-xr-x
testing
[ DIR ]
drwxr-xr-x
texinputs_win
[ DIR ]
drwxr-xr-x
transforms
[ DIR ]
drwxr-xr-x
util
[ DIR ]
drwxr-xr-x
writers
[ DIR ]
drwxr-xr-x
__init__.py
2.09
KB
-rw-r--r--
__main__.py
280
B
-rw-r--r--
addnodes.py
17.37
KB
-rw-r--r--
application.py
53.34
KB
-rw-r--r--
config.py
19.92
KB
-rw-r--r--
deprecation.py
2.89
KB
-rw-r--r--
errors.py
3.5
KB
-rw-r--r--
events.py
4.14
KB
-rw-r--r--
extension.py
2.75
KB
-rw-r--r--
highlighting.py
6.41
KB
-rw-r--r--
io.py
6.39
KB
-rw-r--r--
jinja2glue.py
7.02
KB
-rw-r--r--
parsers.py
3.81
KB
-rw-r--r--
project.py
3.45
KB
-rw-r--r--
py.typed
0
B
-rw-r--r--
pygments_styles.py
2.95
KB
-rw-r--r--
registry.py
21.62
KB
-rw-r--r--
roles.py
13.52
KB
-rw-r--r--
setup_command.py
6.86
KB
-rw-r--r--
theming.py
8.4
KB
-rw-r--r--
versioning.py
5.81
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : extension.py
""" sphinx.extension ~~~~~~~~~~~~~~~~ Utilities for Sphinx extensions. :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from typing import TYPE_CHECKING, Any, Dict from packaging.version import InvalidVersion, Version from sphinx.config import Config from sphinx.errors import VersionRequirementError from sphinx.locale import __ from sphinx.util import logging if TYPE_CHECKING: from sphinx.application import Sphinx logger = logging.getLogger(__name__) class Extension: def __init__(self, name: str, module: Any, **kwargs: Any) -> None: self.name = name self.module = module self.metadata = kwargs self.version = kwargs.pop('version', 'unknown version') # The extension supports parallel read or not. The default value # is ``None``. It means the extension does not tell the status. # It will be warned on parallel reading. self.parallel_read_safe = kwargs.pop('parallel_read_safe', None) # The extension supports parallel write or not. The default value # is ``True``. Sphinx writes parallelly documents even if # the extension does not tell its status. self.parallel_write_safe = kwargs.pop('parallel_write_safe', True) def verify_needs_extensions(app: "Sphinx", config: Config) -> None: """Verify the required Sphinx extensions are loaded.""" if config.needs_extensions is None: return for extname, reqversion in config.needs_extensions.items(): extension = app.extensions.get(extname) if extension is None: logger.warning(__('The %s extension is required by needs_extensions settings, ' 'but it is not loaded.'), extname) continue fulfilled = True if extension.version == 'unknown version': fulfilled = False else: try: if Version(reqversion) > Version(extension.version): fulfilled = False except InvalidVersion: if reqversion > extension.version: fulfilled = False if not fulfilled: raise VersionRequirementError(__('This project needs the extension %s at least in ' 'version %s and therefore cannot be built with ' 'the loaded version (%s).') % (extname, reqversion, extension.version)) def setup(app: "Sphinx") -> Dict[str, Any]: app.connect('config-inited', verify_needs_extensions, priority=800) return { 'version': 'builtin', 'parallel_read_safe': True, 'parallel_write_safe': True, }
Close