Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Oct 8, 2019
1 parent f32bd8f commit 47593c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pip/_internal/utils/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pip._internal.utils.typing import MYPY_CHECK_RUNNING

if MYPY_CHECK_RUNNING:
from typing import Optional, List
from typing import List, Optional

logger = logging.getLogger(__name__)

Expand All @@ -34,7 +34,7 @@ def _running_under_regular_virtualenv():

def running_under_virtualenv():
# type: () -> bool
"""Return a boolean, whether running under a virtual environment.
"""Return True if we're running inside a virtualenv, False otherwise.
"""
return _running_under_venv() or _running_under_regular_virtualenv()

Expand Down

0 comments on commit 47593c4

Please sign in to comment.