From ae10a0a1fb12d6f9c0ecdb250046ab75c322961e Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sun, 5 Feb 2012 17:00:43 +0100 Subject: [PATCH] Fixed Python3 bug. --- wrw/resp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.11.0