From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3D629138BED for ; Mon, 12 Oct 2015 04:36:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3C2BAE0866; Mon, 12 Oct 2015 04:36:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 449B7E0818 for ; Mon, 12 Oct 2015 04:36:07 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 7995C33F7F8 for ; Mon, 12 Oct 2015 04:36:06 +0000 (UTC) From: Mike Frysinger To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [PATCH 4/9] log: make sure NOTICE is an int Date: Mon, 12 Oct 2015 00:35:57 -0400 Message-Id: <1444624562-26162-4-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 2.5.2 In-Reply-To: <1444624562-26162-1-git-send-email-vapier@gentoo.org> References: <1444624562-26162-1-git-send-email-vapier@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Archives-Salt: ebf6fc81-d998-4073-b2d9-e438095b8795 X-Archives-Hash: ced6ae0bf159bb482062b1f9bcba1140 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. --- catalyst/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.5.2