aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-10-11 22:17:26 -0400
committerMike Frysinger <vapier@gentoo.org>2015-10-11 22:17:26 -0400
commitf3eea23c5cf7cf4e54073f59796a25db17d18613 (patch)
treeaccd35ce6b9784998101caf3946f019ca80c9cc0
parentstagebase: disable undefined-variable lint warning (diff)
downloadcatalyst-f3eea23c5cf7cf4e54073f59796a25db17d18613.tar.gz
catalyst-f3eea23c5cf7cf4e54073f59796a25db17d18613.tar.bz2
catalyst-f3eea23c5cf7cf4e54073f59796a25db17d18613.zip
log: make sure NOTICE is an int
The log module wants ints for its levels, so make sure NOTICE is not a float due to the division. This doesn't show up so much in py2, but py3 barfs on floats.
-rw-r--r--catalyst/log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/catalyst/log.py b/catalyst/log.py
index 871c53c..5938199 100644
--- a/catalyst/log.py
+++ b/catalyst/log.py
@@ -39,7 +39,7 @@ del _klass
# Set the notice level between warning and info.
-NOTICE = (logging.WARNING + logging.INFO) / 2
+NOTICE = (logging.WARNING + logging.INFO) // 2
logging.addLevelName(NOTICE, 'NOTICE')