File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,7 @@ def __init__(self, file=None):
99
99
sys .stderr .fileno (), 'w' , buffering = 1 , encoding = 'utf-8'
100
100
)
101
101
)
102
- if file or sys .stdout .isatty ():
103
- self .__out = self .__stdout
104
- else :
105
- self .__out = Output (None )
102
+ self .__out = self .__stdout
106
103
107
104
def stdout (self , line ):
108
105
"""Write a line to stdout."""
@@ -127,10 +124,10 @@ def err_bytes(self, byte_data):
127
124
128
125
def info (self , * msgs ):
129
126
for msg in msgs :
130
- self .__out .single_line (msg )
127
+ self .__stderr .single_line (msg )
131
128
132
129
def note (self , * msgs , ** kw ):
133
- self .__out .tagged_lines (kw .get ('title' , 'Notice' ), msgs )
130
+ self .__stderr .tagged_lines (kw .get ('title' , 'Notice' ), msgs )
134
131
135
132
def warn (self , * msgs , ** kw ):
136
133
self .__stderr .tagged_lines (kw .get ('title' , 'Warning' ), msgs )
You can’t perform that action at this time.
0 commit comments