From 2ce45fe35de15bdf58cea13574d47137a5bac2b5 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 25 Jun 2021 20:39:40 +0000 Subject: [PATCH] More Py3K fixes, urrlib.quote->urllib.parse.quote We're running statusbot under Python 3 now, and urllib.quote no longer exists there. Use urllib.parse.quote instead. Change-Id: If9b7eced5c65bc3a3e0a078c338da2a609af0fc2 --- statusbot/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/statusbot/bot.py b/statusbot/bot.py index d2d5b63..1923eb9 100644 --- a/statusbot/bot.py +++ b/statusbot/bot.py @@ -137,7 +137,7 @@ class SuccessPage(WikiPage): ts = self.timestamp() if self.irclogs_url: url = self.irclogs_url % { - 'chan': urllib.quote(channel), + 'chan': urllib.parse.quote(channel), 'date': ts[0:10]} onchan = "[%s %s]" % (url, channel) else: @@ -171,7 +171,7 @@ class ThanksPage(WikiPage): ts = self.timestamp() if self.irclogs_url: url = self.irclogs_url % { - 'chan': urllib.quote(channel), + 'chan': urllib.parse.quote(channel), 'date': ts[0:10]} onchan = "[%s %s]" % (url, channel) else: