PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
pip
/
_internal
/
utils
"""Filetype information.""" from typing import Tuple from pip._internal.utils.misc import splitext WHEEL_EXTENSION = ".whl" BZ2_EXTENSIONS: Tuple[str, ...] = (".tar.bz2", ".tbz") XZ_EXTENSIONS: Tuple[str, ...] = ( ".tar.xz", ".txz", ".tlz", ".tar.lz", ".tar.lzma", ) ZIP_EXTENSIONS: Tuple[str, ...] = (".zip", WHEEL_EXTENSION) TAR_EXTENSIONS: Tuple[str, ...] = (".tar.gz", ".tgz", ".tar") ARCHIVE_EXTENSIONS = ZIP_EXTENSIONS + BZ2_EXTENSIONS + TAR_EXTENSIONS + XZ_EXTENSIONS def is_archive_file(name: str) -> bool: """Return True if `name` is a considered as an archive file.""" ext = splitext(name)[1].lower() if ext in ARCHIVE_EXTENSIONS: return True return False
[-] misc.py
[edit]
[-] direct_url_helpers.py
[edit]
[-] temp_dir.py
[edit]
[-] filetypes.py
[edit]
[-] virtualenv.py
[edit]
[+]
..
[-] compatibility_tags.py
[edit]
[-] datetime.py
[edit]
[-] glibc.py
[edit]
[-] retry.py
[edit]
[-] appdirs.py
[edit]
[-] entrypoints.py
[edit]
[-] wheel.py
[edit]
[-] unpacking.py
[edit]
[-] hashes.py
[edit]
[-] urls.py
[edit]
[+]
__pycache__
[-] subprocess.py
[edit]
[-] egg_link.py
[edit]
[-] _jaraco_text.py
[edit]
[-] compat.py
[edit]
[-] logging.py
[edit]
[-] __init__.py
[edit]
[-] _log.py
[edit]
[-] deprecation.py
[edit]
[-] setuptools_build.py
[edit]
[-] packaging.py
[edit]
[-] filesystem.py
[edit]