From 9a970e4edcd2e5d0d70f7c295982574014ccad3d Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 4 Aug 2012 18:54:14 +0200 Subject: [PATCH] BadWords & Nickometer: Use 'future' divisions. --- config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index bbd32e6..e66ea46 100644 --- a/config.py +++ b/config.py @@ -27,6 +27,8 @@ # POSSIBILITY OF SUCH DAMAGE. ### +from __future__ import division + import time import supybot.conf as conf @@ -64,7 +66,7 @@ conf.registerChannelValue(BadWords,'requireWordBoundaries', class String256(registry.String): def __call__(self): s = registry.String.__call__(self) - return s * (1024/len(s)) + return s * (1024//len(s)) def __str__(self): return self.value