We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d9dde1 + 83f4268 commit 5e8e88eCopy full SHA for 5e8e88e
src/pip/__main__.py
@@ -1,6 +1,5 @@
1
import os
2
import sys
3
-import warnings
4
5
# Remove '' and current working directory from the first entry
6
# of sys.path, if present to avoid using current directory
@@ -20,12 +19,6 @@
20
19
sys.path.insert(0, path)
21
22
if __name__ == "__main__":
23
- # Work around the error reported in #9540, pending a proper fix.
24
- # Note: It is essential the warning filter is set *before* importing
25
- # pip, as the deprecation happens at import time, not runtime.
26
- warnings.filterwarnings(
27
- "ignore", category=DeprecationWarning, module=".*packaging\\.version"
28
- )
29
from pip._internal.cli.main import main as _main
30
31
sys.exit(_main())
0 commit comments