Skip to content

Commit da2ae13

Browse files
committed
Revert temporary fix for issue 9540
1 parent 09a6a68 commit da2ae13

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/pip/__main__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
22
import sys
3-
import warnings
43

54
# Remove '' and current working directory from the first entry
65
# of sys.path, if present to avoid using current directory
@@ -20,12 +19,6 @@
2019
sys.path.insert(0, path)
2120

2221
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-
)
2922
from pip._internal.cli.main import main as _main
3023

3124
sys.exit(_main())

0 commit comments

Comments
 (0)