Remove duplicate and unused code

This commit is contained in:
Tzu-ping Chung
2018-07-14 19:17:23 +08:00
committed by Dan Ryan
parent 6d7b26ae6c
commit ac41cdcf4e
2 changed files with 1 additions and 10 deletions
+1 -3
View File
@@ -6,7 +6,6 @@ import sys
import shutil
import time
import tempfile
from glob import glob
import json as simplejson
import click
import click_completion
@@ -51,8 +50,6 @@ from .environments import (
PIPENV_SKIP_VALIDATION,
PIPENV_HIDE_EMOJIS,
PIPENV_INSTALL_TIMEOUT,
PYENV_ROOT,
PYENV_INSTALLED,
PIPENV_YES,
PIPENV_DONT_LOAD_ENV,
PIPENV_DEFAULT_PYTHON_VERSION,
@@ -369,6 +366,7 @@ def ensure_python(three=None, python=None):
err=True,
)
# Pyenv is installed
from .vendor.pythonfinder.environment import PYENV_INSTALLED
if not PYENV_INSTALLED:
abort()
else:
-7
View File
@@ -209,12 +209,5 @@ PIPENV_SKIP_VALIDATION = True
# Internal, the default shell to use if shell detection fails.
PIPENV_SHELL = os.environ.get("SHELL") or os.environ.get("PYENV_SHELL")
# Internal, to tell if pyenv is installed.
PYENV_ROOT = os.environ.get("PYENV_ROOT", os.path.expanduser("~/.pyenv"))
PYENV_INSTALLED = (
bool(os.environ.get("PYENV_SHELL")) or
bool(os.environ.get("PYENV_ROOT"))
)
# Internal, to tell whether the command line session is interactive.
SESSION_IS_INTERACTIVE = bool(os.isatty(sys.stdout.fileno()))