From 327eadd84e9eac10441cb419d9ad98e8776ac9b3 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 17 Jun 2008 00:10:44 +0100 Subject: [PATCH] Add an err() and use it --- terminatorlib/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index c8678f28..4821e873 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -49,6 +49,8 @@ debug = True def dbg (log = ""): if debug: print >> sys.stderr, log +def err (log = ""): + print >> sys.stderr, log class TerminatorConfig: callback = None @@ -182,7 +184,7 @@ class TerminatorConfValuestoreRC (TerminatorConfValuestore): elif deftype == 'float': self.values[key] = float (value) elif deftype == 'list': - print >> sys.stderr, _("Reading list values from .terminatorrc is not currently supported") + err (_("Reading list values from .terminatorrc is not currently supported")) raise ValueError else: self.values[key] = value