From: Fredrik Tolf Date: Sun, 5 Feb 2012 16:00:43 +0000 (+0100) Subject: Fixed Python3 bug. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=ae10a0a1fb12d6f9c0ecdb250046ab75c322961e;p=wrw.git Fixed Python3 bug. --- diff --git a/wrw/resp.py b/wrw/resp.py index 6e95ec5..4840799 100644 --- a/wrw/resp.py +++ b/wrw/resp.py @@ -43,7 +43,7 @@ class usererror(dispatch.restart): self.detail = detail def handle(self, req): - return [skelfor(req).error(self.message, self.detail)] + return [skelfor(req).error(self.message, self.detail).encode("utf-8")] class message(dispatch.restart): def __init__(self, message, detail): @@ -52,7 +52,7 @@ class message(dispatch.restart): self.detail = detail def handle(self, req): - return [skelfor(req).message(self.message, self.detail)] + return [skelfor(req).message(self.message, self.detail).encode("utf-8")] class httperror(usererror): def __init__(self, status, message = None, detail = None):