Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 3.141.193.189
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
python310 /
lib64 /
python3.10 /
importlib /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-01-22 11:40
metadata
[ DIR ]
drwxr-xr-x
2025-01-22 11:40
__init__.py
5.95
KB
-rw-r--r--
2024-12-03 17:27
_abc.py
1.81
KB
-rw-r--r--
2024-12-03 17:27
_adapters.py
1.86
KB
-rw-r--r--
2024-12-03 17:27
_bootstrap.py
40.5
KB
-rw-r--r--
2024-12-03 17:27
_bootstrap_external.py
63.33
KB
-rw-r--r--
2024-12-03 17:27
_common.py
3.15
KB
-rw-r--r--
2024-12-03 17:27
abc.py
14.08
KB
-rw-r--r--
2024-12-03 17:27
machinery.py
831
B
-rw-r--r--
2024-12-03 17:27
readers.py
3.5
KB
-rw-r--r--
2024-12-03 17:27
resources.py
5.57
KB
-rw-r--r--
2024-12-03 17:27
util.py
11.22
KB
-rw-r--r--
2024-12-03 17:27
Save
Rename
from contextlib import suppress from . import abc class SpecLoaderAdapter: """ Adapt a package spec to adapt the underlying loader. """ def __init__(self, spec, adapter=lambda spec: spec.loader): self.spec = spec self.loader = adapter(spec) def __getattr__(self, name): return getattr(self.spec, name) class TraversableResourcesLoader: """ Adapt a loader to provide TraversableResources. """ def __init__(self, spec): self.spec = spec def get_resource_reader(self, name): return DegenerateFiles(self.spec)._native() class DegenerateFiles: """ Adapter for an existing or non-existant resource reader to provide a degenerate .files(). """ class Path(abc.Traversable): def iterdir(self): return iter(()) def is_dir(self): return False is_file = exists = is_dir # type: ignore def joinpath(self, other): return DegenerateFiles.Path() @property def name(self): return '' def open(self, mode='rb', *args, **kwargs): raise ValueError() def __init__(self, spec): self.spec = spec @property def _reader(self): with suppress(AttributeError): return self.spec.loader.get_resource_reader(self.spec.name) def _native(self): """ Return the native reader if it supports files(). """ reader = self._reader return reader if hasattr(reader, 'files') else self def __getattr__(self, attr): return getattr(self._reader, attr) def files(self): return DegenerateFiles.Path() def wrap_spec(package): """ Construct a package spec with traversable compatibility on the spec/loader/reader. """ return SpecLoaderAdapter(package.__spec__, TraversableResourcesLoader)