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:
parent
16dfaad342
commit
2ce45fe35d
|
@ -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…
Reference in New Issue