Browse Source

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
changes/60/798160/1
Jeremy Stanley 3 months ago
parent
commit
2ce45fe35d
  1. 4
      statusbot/bot.py

4
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:

Loading…
Cancel
Save