From ed215b754157d58c8bdcf54df582d74ee16fdab9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 17 Jun 2013 22:37:09 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/argparser.py b/src/argparser.py index 78cc0e0..6b89266 100644 --- a/src/argparser.py +++ b/src/argparser.py @@ -333,7 +333,7 @@ class ArgParser(): msg += ' %s' % opt[0] else: msg += ' %s(%s)' % opt - sys.stderr.write(msg + '\n') + print(msg) if exit_value is not None: sys.exit(exit_value) return False @@ -354,7 +354,7 @@ class ArgParser(): msg = self.program + ': option used out of context: ' + opt if opt != self.optmap[opt][0]: msg += '(' + self.optmap[opt][0] + ')' - sys.stderr.write(msg + '\n') + print(msg) rc = False if (not rc) and (exit_value is not None): sys.exit(exit_value) -- cgit v1.2.3-70-g09d2