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
This commit is contained in:
Jeremy Stanley 2021-06-25 20:39:40 +00:00
parent 16dfaad342
commit 2ce45fe35d
1 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ class SuccessPage(WikiPage):
ts = self.timestamp() ts = self.timestamp()
if self.irclogs_url: if self.irclogs_url:
url = self.irclogs_url % { url = self.irclogs_url % {
'chan': urllib.quote(channel), 'chan': urllib.parse.quote(channel),
'date': ts[0:10]} 'date': ts[0:10]}
onchan = "[%s %s]" % (url, channel) onchan = "[%s %s]" % (url, channel)
else: else:
@ -171,7 +171,7 @@ class ThanksPage(WikiPage):
ts = self.timestamp() ts = self.timestamp()
if self.irclogs_url: if self.irclogs_url:
url = self.irclogs_url % { url = self.irclogs_url % {
'chan': urllib.quote(channel), 'chan': urllib.parse.quote(channel),
'date': ts[0:10]} 'date': ts[0:10]}
onchan = "[%s %s]" % (url, channel) onchan = "[%s %s]" % (url, channel)
else: else: