Gentoo Archives: gentoo-catalyst

From: Mike Frysinger <vapier@g.o>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] [PATCH 4/9] log: make sure NOTICE is an int
Date: Mon, 12 Oct 2015 04:36:12
Message-Id: 1444624562-26162-4-git-send-email-vapier@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH 1/9] convert octals to py3 compat by Mike Frysinger
1 The log module wants ints for its levels, so make sure NOTICE is
2 not a float due to the division. This doesn't show up so much in
3 py2, but py3 barfs on floats.
4 ---
5 catalyst/log.py | 2 +-
6 1 file changed, 1 insertion(+), 1 deletion(-)
7
8 diff --git a/catalyst/log.py b/catalyst/log.py
9 index 871c53c..5938199 100644
10 --- a/catalyst/log.py
11 +++ b/catalyst/log.py
12 @@ -39,7 +39,7 @@ del _klass
13
14
15 # Set the notice level between warning and info.
16 -NOTICE = (logging.WARNING + logging.INFO) / 2
17 +NOTICE = (logging.WARNING + logging.INFO) // 2
18 logging.addLevelName(NOTICE, 'NOTICE')
19
20
21 --
22 2.5.2