Ui,Translate: remove bytearray format string
Py 3.4 does not support bytearray format strings for % operator: b"%s" % s
This commit is contained in:
parent
ec6fd48b86
commit
7e57a8f71e
2 changed files with 2 additions and 2 deletions
|
@ -299,7 +299,7 @@ class UiRequest(object):
|
|||
# Redirect to an url
|
||||
def actionRedirect(self, url):
|
||||
self.start_response('301 Redirect', [('Location', str(url))])
|
||||
yield b"Location changed: %s" % url.encode("utf8")
|
||||
yield b"Location changed: " + url.encode("utf8")
|
||||
|
||||
def actionIndex(self):
|
||||
return self.actionRedirect("/" + config.homepage)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue