Mercurial > xib
changeset 138:f3a9c891f7c0
fixed a DeprecationWarning in irclib
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sat, 16 Jan 2010 17:21:03 +0100 |
parents | 9f39cead20cb |
children | 38eb220142a1 |
files | irclib.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/irclib.py +++ b/irclib.py @@ -882,7 +882,7 @@ class ServerConnection(Connection): l_size = len(l.encode('utf-8')) available_size = float(510-len('%s PRIVMSG %s :' % (self.irc_id, target))) # 510 is the size limit for IRC messages defined in RFC 2812 e = 0 - for i in range(math.ceil(l_size/available_size)): + for i in range(int(math.ceil(l_size/available_size))): s = e e = s+int(available_size) while len(l[s:e].encode('utf-8')) >= available_size: