Skip to content

Commit 99b536d

Browse files
committed
out.py: switch .info() and .note() to use stderr
In POSIX tradition, informational messages that are not essential output belong on stderr. Semantically, it appears as if both .info() and .note() are used for such messages, so switch them to that stream.
1 parent 143146f commit 99b536d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stgit/out.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ def err_bytes(self, byte_data):
127127

128128
def info(self, *msgs):
129129
for msg in msgs:
130-
self.__out.single_line(msg)
130+
self.__stderr.single_line(msg)
131131

132132
def note(self, *msgs, **kw):
133-
self.__out.tagged_lines(kw.get('title', 'Notice'), msgs)
133+
self.__stderr.tagged_lines(kw.get('title', 'Notice'), msgs)
134134

135135
def warn(self, *msgs, **kw):
136136
self.__stderr.tagged_lines(kw.get('title', 'Warning'), msgs)

0 commit comments

Comments
 (0)