1
1
Fork 0
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:
Emil Burzo 2019-09-30 16:25:25 +03:00 committed by GitHub
parent 7dc7b81675
commit 05a48404ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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