Skip to content

Commit

Permalink
Merge branch 'main' into docs/improve-root-user-action-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Pepe authored Jun 1, 2023
2 parents 340cf17 + 5e8e88e commit 9b952ab
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 9b952ab

Please sign in to comment.