1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Use from ... import ... style

This commit is contained in:
Chris Hunt 2019-09-24 21:36:16 -04:00
parent b0eed267a6
commit 3e98ee8464

View file

@ -10,7 +10,7 @@ import pytest
import six
from setuptools.wheel import Wheel
import pip._internal.main
from pip._internal.main import main as pip_entry_point
from tests.lib import DATA_DIR, SRC_DIR, TestData
from tests.lib.path import Path
from tests.lib.scripttest import PipTestEnvironment
@ -342,7 +342,7 @@ class InMemoryPip(object):
stdout = io.BytesIO()
sys.stdout = stdout
try:
returncode = pip._internal.main.main(list(args))
returncode = pip_entry_point(list(args))
except SystemExit as e:
returncode = e.code or 0
finally: