ACIL FM
Dark
Refresh
Current DIR:
/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/models
/
opt
imunify360
venv
lib
python3.11
site-packages
pip
_internal
models
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
__pycache__
-
chmod
Open
Rename
Delete
candidate.py
753 B
chmod
View
DL
Edit
Rename
Delete
direct_url.py
6.42 MB
chmod
View
DL
Edit
Rename
Delete
format_control.py
2.43 MB
chmod
View
DL
Edit
Rename
Delete
index.py
1.01 MB
chmod
View
DL
Edit
Rename
Delete
installation_report.py
2.75 MB
chmod
View
DL
Edit
Rename
Delete
link.py
21.01 MB
chmod
View
DL
Edit
Rename
Delete
pylock.py
6.05 MB
chmod
View
DL
Edit
Rename
Delete
scheme.py
575 B
chmod
View
DL
Edit
Rename
Delete
search_scope.py
4.42 MB
chmod
View
DL
Edit
Rename
Delete
selection_prefs.py
1.97 MB
chmod
View
DL
Edit
Rename
Delete
target_python.py
4.17 MB
chmod
View
DL
Edit
Rename
Delete
wheel.py
5.38 MB
chmod
View
DL
Edit
Rename
Delete
__init__.py
62 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/models/format_control.py
from typing import FrozenSet, Optional, Set from pip._vendor.packaging.utils import canonicalize_name from pip._internal.exceptions import CommandError class FormatControl: """Helper for managing formats from which a package can be installed.""" __slots__ = ["no_binary", "only_binary"] def __init__( self, no_binary: Optional[Set[str]] = None, only_binary: Optional[Set[str]] = None, ) -> None: if no_binary is None: no_binary = set() if only_binary is None: only_binary = set() self.no_binary = no_binary self.only_binary = only_binary def __eq__(self, other: object) -> bool: if not isinstance(other, self.__class__): return NotImplemented if self.__slots__ != other.__slots__: return False return all(getattr(self, k) == getattr(other, k) for k in self.__slots__) def __repr__(self) -> str: return f"{self.__class__.__name__}({self.no_binary}, {self.only_binary})" @staticmethod def handle_mutual_excludes(value: str, target: Set[str], other: Set[str]) -> None: if value.startswith("-"): raise CommandError( "--no-binary / --only-binary option requires 1 argument." ) new = value.split(",") while ":all:" in new: other.clear() target.clear() target.add(":all:") del new[: new.index(":all:") + 1] # Without a none, we want to discard everything as :all: covers it if ":none:" not in new: return for name in new: if name == ":none:": target.clear() continue name = canonicalize_name(name) other.discard(name) target.add(name) def get_allowed_formats(self, canonical_name: str) -> FrozenSet[str]: result = {"binary", "source"} if canonical_name in self.only_binary: result.discard("source") elif canonical_name in self.no_binary: result.discard("binary") elif ":all:" in self.only_binary: result.discard("source") elif ":all:" in self.no_binary: result.discard("binary") return frozenset(result) def disallow_binaries(self) -> None: self.handle_mutual_excludes( ":all:", self.no_binary, self.only_binary, )
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply