未验证 提交 05a48404 编写于 作者: E Emil Burzo 提交者: GitHub

fix crash when sys.stdin is None

上级 7dc7b816
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册