PATH:
opt
/
alt
/
python38
/
lib
/
python3.8
/
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
[+]
__pycache__
[-] compat.py
[edit]
[-] setuptools_build.py
[edit]
[-] subprocess.py
[edit]
[-] temp_dir.py
[edit]
[-] filesystem.py
[edit]
[-] entrypoints.py
[edit]
[-] __init__.py
[edit]
[-] glibc.py
[edit]
[-] wheel.py
[edit]
[-] encoding.py
[edit]
[+]
..
[-] virtualenv.py
[edit]
[-] appdirs.py
[edit]
[-] misc.py
[edit]
[-] hashes.py
[edit]
[-] packaging.py
[edit]
[-] compatibility_tags.py
[edit]
[-] filetypes.py
[edit]
[-] deprecation.py
[edit]
[-] _log.py
[edit]
[-] distutils_args.py
[edit]
[-] unpacking.py
[edit]
[-] urls.py
[edit]
[-] datetime.py
[edit]
[-] models.py
[edit]
[-] direct_url_helpers.py
[edit]
[-] logging.py
[edit]
[-] inject_securetransport.py
[edit]
[-] egg_link.py
[edit]