Skip to content

Commit

Permalink
Merge pull request #12064 from sbidoul/revert-9540-temporary-fix
Browse files Browse the repository at this point in the history
Revert temporary fix for issue 9540
  • Loading branch information
sbidoul authored May 31, 2023
2 parents 5d9dde1 + 83f4268 commit 5e8e88e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/pip/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import sys
import warnings

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

if __name__ == "__main__":
# Work around the error reported in #9540, pending a proper fix.
# Note: It is essential the warning filter is set *before* importing
# pip, as the deprecation happens at import time, not runtime.
warnings.filterwarnings(
"ignore", category=DeprecationWarning, module=".*packaging\\.version"
)
from pip._internal.cli.main import main as _main

sys.exit(_main())

0 comments on commit 5e8e88e

Please sign in to comment.