py3 fixes for admin app

This commit is contained in:
ilvalle
2016-06-25 17:36:37 +02:00
parent d429554c5b
commit f343fab528
5 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -482,7 +482,7 @@ def wsgibase(environ, responder):
if request.ajax:
if response.flash:
http_response.headers['web2py-component-flash'] = \
urllib2.quote(xmlescape(response.flash).replace('\n', ''))
urllib2.quote(xmlescape(response.flash).replace(b'\n', b''))
if response.js:
http_response.headers['web2py-component-command'] = \
urllib2.quote(response.js.replace('\n', ''))