From 0a7fdae08dc0c023ea9d81200242d099a5c62aa8 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 29 Jan 2005 19:20:15 +0000 Subject: [PATCH] Changed some more webutils uses to utils.web. --- plugins/Dict/plugin.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/Dict/plugin.py b/plugins/Dict/plugin.py index 08c638902..7522b70d0 100644 --- a/plugins/Dict/plugin.py +++ b/plugins/Dict/plugin.py @@ -38,7 +38,6 @@ import supybot.utils as utils from supybot.commands import * import supybot.ircutils as ircutils import supybot.registry as registry -import supybot.webutils as webutils import supybot.callbacks as callbacks class Dict(callbacks.Privmsg): @@ -55,7 +54,7 @@ class Dict(callbacks.Privmsg): dbs.sort() irc.reply(utils.str.commaAndify(dbs)) except socket.error, e: - irc.error(webutils.strError(e)) + irc.error(utils.web.strError(e)) dictionaries = wrap(dictionaries) def random(self, irc, msg, args): @@ -69,7 +68,7 @@ class Dict(callbacks.Privmsg): dbs = conn.getdbdescs().keys() irc.reply(random.choice(dbs)) except socket.error, e: - irc.error(webutils.strError(e)) + irc.error(utils.web.strError(e)) random = wrap(random) def dict(self, irc, msg, args, words): @@ -81,7 +80,7 @@ class Dict(callbacks.Privmsg): server = conf.supybot.plugins.Dict.server() conn = dictclient.Connection(server) except socket.error, e: - irc.error(webutils.strError(e), Raise=True) + irc.error(utils.web.strError(e), Raise=True) dbs = sets.Set(conn.getdbdescs()) if words[0] in dbs: dictionary = words.pop(0)