BadWords & Nickometer: Use 'future' divisions.
This commit is contained in:
parent
72a8c24d73
commit
9a970e4edc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue