OXIESEC PANEL
- Current Dir:
/
/
snap
/
certbot
/
4730
/
lib
/
python3.12
/
site-packages
/
setuptools
/
_vendor
/
importlib_metadata
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/10/2025 09:51:14 PM
rwxr-xr-x
📄
__init__.py
33.01 KB
06/10/2025 09:50:49 PM
rw-r--r--
📁
__pycache__
-
06/10/2025 09:51:14 PM
rwxr-xr-x
📄
_adapters.py
2.26 KB
06/10/2025 09:50:49 PM
rw-r--r--
📄
_collections.py
743 bytes
06/10/2025 09:50:49 PM
rw-r--r--
📄
_compat.py
1.28 KB
06/10/2025 09:50:49 PM
rw-r--r--
📄
_functools.py
2.83 KB
06/10/2025 09:50:49 PM
rw-r--r--
📄
_itertools.py
2.02 KB
06/10/2025 09:50:49 PM
rw-r--r--
📄
_meta.py
1.76 KB
06/10/2025 09:50:49 PM
rw-r--r--
📄
_text.py
2.12 KB
06/10/2025 09:50:49 PM
rw-r--r--
📁
compat
-
06/10/2025 09:51:14 PM
rwxr-xr-x
📄
diagnose.py
379 bytes
06/10/2025 09:50:49 PM
rw-r--r--
📄
py.typed
0 bytes
06/10/2025 09:50:49 PM
rw-r--r--
Editing: _compat.py
Close
import sys import platform __all__ = ['install', 'NullFinder'] def install(cls): """ Class decorator for installation on sys.meta_path. Adds the backport DistributionFinder to sys.meta_path and attempts to disable the finder functionality of the stdlib DistributionFinder. """ sys.meta_path.append(cls()) disable_stdlib_finder() return cls def disable_stdlib_finder(): """ Give the backport primacy for discovering path-based distributions by monkey-patching the stdlib O_O. See #91 for more background for rationale on this sketchy behavior. """ def matches(finder): return getattr( finder, '__module__', None ) == '_frozen_importlib_external' and hasattr(finder, 'find_distributions') for finder in filter(matches, sys.meta_path): # pragma: nocover del finder.find_distributions class NullFinder: """ A "Finder" (aka "MetaPathFinder") that never finds any modules, but may find distributions. """ @staticmethod def find_spec(*args, **kwargs): return None def pypy_partial(val): """ Adjust for variable stacklevel on partial under PyPy. Workaround for #327. """ is_pypy = platform.python_implementation() == 'PyPy' return val + is_pypy