Gentoo Archives: gentoo-catalyst

From: Brian Dolbec <dolsen@g.o>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] [PATCH 4/4] config: convert to log module
Date: Fri, 09 Oct 2015 20:39:26
Message-Id: 20151009133835.6f7042aa.dolsen@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH 4/4] config: convert to log module by Mike Frysinger
1 On Fri, 9 Oct 2015 15:36:07 -0400
2 Mike Frysinger <vapier@g.o> wrote:
3
4 > ---
5 > catalyst/config.py | 4 +++-
6 > 1 file changed, 3 insertions(+), 1 deletion(-)
7 >
8 > diff --git a/catalyst/config.py b/catalyst/config.py
9 > index ffad9b3..db81a96 100644
10 > --- a/catalyst/config.py
11 > +++ b/catalyst/config.py
12 > @@ -1,5 +1,7 @@
13 >
14 > import re
15 > +
16 > +from catalyst import log
17 > from catalyst.support import CatalystError
18 >
19 > class ParserBase(object):
20 > @@ -98,7 +100,7 @@ class ParserBase(object):
21 > for x in values.keys():
22 > # Delete empty key pairs
23 > if not values[x]:
24 > - print "\n\tWARNING: No value
25 > set for key " + x + "...deleting"
26 > + log.warning('No value set
27 > for key "%s"; deleting', x) del values[x]
28 >
29 > self.values = values
30
31
32 you have a go for all 4 in this series :)
33
34 --
35 Brian Dolbec <dolsen>