Merge pull request #4306 from philjc/issue-4305

This commit is contained in:
Dan Ryan
2020-06-01 23:11:02 -04:00
committed by GitHub
4 changed files with 6 additions and 5 deletions
+1
View File
@@ -0,0 +1 @@
Fix a bug where Pipenv doesn't realize the session is interactive
+1
View File
@@ -0,0 +1 @@
Print class name instead of the object reference when using installer to install a python version
+1 -5
View File
@@ -341,11 +341,7 @@ PIPENV_SHELL = (
)
# Internal, to tell whether the command line session is interactive.
try:
SESSION_IS_INTERACTIVE = _isatty(sys.stdout.fileno())
except UnsupportedOperation:
SESSION_IS_INTERACTIVE = _isatty(sys.stdout)
SESSION_IS_INTERACTIVE = _isatty(sys.stdout)
# Internal, consolidated verbosity representation as an integer. The default
# level is 0, increased for wordiness and decreased for terseness.
+3
View File
@@ -71,6 +71,9 @@ class Installer(object):
self.cmd = self._find_installer()
super(Installer, self).__init__()
def __str__(self):
return self.__class__.__name__
@abstractmethod
def _find_installer(self):
pass