Fix setting stderr default coloring policy

stderr default should be set if stderr is None, not if stdout is None
This commit is contained in:
Jean-Philippe Ouellet 2017-11-20 00:44:07 -05:00
父節點 ef17e86810
當前提交 57bf88aa30
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4747332C27533622

查看文件

@ -130,7 +130,7 @@ def main(args=None, app=None):
if args.color_output is None and args.filter_esc: if args.color_output is None and args.filter_esc:
args.color_output = '31' args.color_output = '31'
if args.color_output is None and os.isatty(sys.stderr.fileno()): if args.color_stderr is None and os.isatty(sys.stderr.fileno()):
args.color_stderr = 31 args.color_stderr = 31
if len(args.domains) > 1 and args.passio and not args.localcmd: if len(args.domains) > 1 and args.passio and not args.localcmd: