X7ROOT File Manager
Current Path:
/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/utils
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
pip
/
_internal
/
utils
/
??
..
??
__init__.py
(0 B)
??
__pycache__
??
_jaraco_text.py
(3.27 KB)
??
_log.py
(1015 B)
??
appdirs.py
(1.64 KB)
??
compat.py
(2.46 KB)
??
compatibility_tags.py
(6.47 KB)
??
datetime.py
(868 B)
??
deprecation.py
(3.61 KB)
??
direct_url_helpers.py
(3.13 KB)
??
egg_link.py
(2.4 KB)
??
entrypoints.py
(3.25 KB)
??
filesystem.py
(6.73 KB)
??
filetypes.py
(689 B)
??
glibc.py
(3.64 KB)
??
hashes.py
(4.88 KB)
??
logging.py
(13.1 KB)
??
misc.py
(23.17 KB)
??
packaging.py
(1.56 KB)
??
pylock.py
(3.73 KB)
??
retry.py
(1.43 KB)
??
subprocess.py
(8.77 KB)
??
temp_dir.py
(9.09 KB)
??
unpacking.py
(12.67 KB)
??
urls.py
(1.56 KB)
??
virtualenv.py
(3.37 KB)
??
wheel.py
(4.36 KB)
Editing: datetime.py
"""For when pip wants to check the date or time.""" import datetime import sys def today_is_later_than(year: int, month: int, day: int) -> bool: today = datetime.date.today() given = datetime.date(year, month, day) return today > given def parse_iso_datetime(isodate: str) -> datetime.datetime: """Convert an ISO format string to a datetime. Handles the format 2020-01-22T14:24:01Z (trailing Z) which is not supported by older versions of fromisoformat. """ # Python 3.11+ supports Z suffix natively in fromisoformat if sys.version_info >= (3, 11): return datetime.datetime.fromisoformat(isodate) else: return datetime.datetime.fromisoformat( isodate.replace("Z", "+00:00") if isodate.endswith("Z") and ("T" in isodate or " " in isodate.strip()) else isodate )
Upload File
Create Folder