aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/ensurepip/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/ensurepip/__init__.py')
-rw-r--r--Lib/ensurepip/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/ensurepip/__init__.py b/Lib/ensurepip/__init__.py
index 74530706be5..0f1df6e8a83 100644
--- a/Lib/ensurepip/__init__.py
+++ b/Lib/ensurepip/__init__.py
@@ -90,7 +90,8 @@ sys.path = {additional_paths or []} + sys.path
sys.argv[1:] = {args}
runpy.run_module("pip", run_name="__main__", alter_sys=True)
"""
- return subprocess.run([sys.executable, "-c", code], check=True).returncode
+ return subprocess.run([sys.executable, '-W', 'ignore::DeprecationWarning',
+ "-c", code], check=True).returncode
def version():