mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
fix crash when sys.stdin is None
This commit is contained in:
parent
7dc7b81675
commit
05a48404ca
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ class Subversion(VersionControl):
|
|||
def __init__(self, use_interactive=None):
|
||||
# type: (bool) -> None
|
||||
if use_interactive is None:
|
||||
use_interactive = sys.stdin.isatty()
|
||||
use_interactive = sys.stdin and sys.stdin.isatty()
|
||||
self.use_interactive = use_interactive
|
||||
|
||||
# This member is used to cache the fetched version of the current
|
||||
|
|
Loading…
Reference in a new issue