1 |
commit: f3eea23c5cf7cf4e54073f59796a25db17d18613 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 12 02:17:26 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 12 02:17:26 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=f3eea23c |
7 |
|
8 |
log: make sure NOTICE is an int |
9 |
|
10 |
The log module wants ints for its levels, so make sure NOTICE is |
11 |
not a float due to the division. This doesn't show up so much in |
12 |
py2, but py3 barfs on floats. |
13 |
|
14 |
catalyst/log.py | 2 +- |
15 |
1 file changed, 1 insertion(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/catalyst/log.py b/catalyst/log.py |
18 |
index 871c53c..5938199 100644 |
19 |
--- a/catalyst/log.py |
20 |
+++ b/catalyst/log.py |
21 |
@@ -39,7 +39,7 @@ del _klass |
22 |
|
23 |
|
24 |
# Set the notice level between warning and info. |
25 |
-NOTICE = (logging.WARNING + logging.INFO) / 2 |
26 |
+NOTICE = (logging.WARNING + logging.INFO) // 2 |
27 |
logging.addLevelName(NOTICE, 'NOTICE') |