python-pip/no-version-warning.patch
Miro Hrončok a83e8d6604 Update to 21.2.3
The bundled toml was replaced by tomli, same license (MIT).

Related: rhbz#1932713
2021-09-17 19:14:32 +02:00

17 lines
606 B
Diff

diff --git a/src/pip/_vendor/packaging/version.py b/src/pip/_vendor/packaging/version.py
index de9a09a..154e94d 100644
--- a/src/pip/_vendor/packaging/version.py
+++ b/src/pip/_vendor/packaging/version.py
@@ -108,11 +108,6 @@ class LegacyVersion(_BaseVersion):
self._version = str(version)
self._key = _legacy_cmpkey(self._version)
- warnings.warn(
- "Creating a LegacyVersion has been deprecated and will be "
- "removed in the next major release",
- DeprecationWarning,
- )
def __str__(self) -> str:
return self._version