Direct EOutput.eerror() and ewarn() output to stderr.
authorZac Medico <zmedico@gentoo.org>
Fri, 26 Sep 2008 01:48:20 +0000 (01:48 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 26 Sep 2008 01:48:20 +0000 (01:48 -0000)
svn path=/main/trunk/; revision=11554

pym/portage/output.py

index 35dba7f0d8cb08ce16a1b2daeeb58df6e8e86af7..defcb478b64ffd74aec309eb6ae5b07b47666477 100644 (file)
@@ -503,7 +503,7 @@ class EOutput(object):
                @param msg: A very brief (shorter than one line) error message.
                @type msg: StringType
                """
-               out = sys.stdout
+               out = sys.stderr
                if not self.quiet:
                        if self.__last_e_cmd == "ebegin":
                                out.write("\n")
@@ -548,7 +548,7 @@ class EOutput(object):
                @param msg: A very brief (shorter than one line) warning message.
                @type msg: StringType
                """
-               out = sys.stdout
+               out = sys.stderr
                if not self.quiet:
                        if self.__last_e_cmd == "ebegin":
                                out.write("\n")