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:
parent
b0eed267a6
commit
3e98ee8464
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue