From cb8bb5edc89f083d161a7c5c9f4ed904838e1266 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 16 Jan 2013 01:23:01 +0100 Subject: [PATCH] Made appropriate Python3 changes. --- wrw/proto.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wrw/proto.py b/wrw/proto.py index 4cf1951..0a6a430 100644 --- a/wrw/proto.py +++ b/wrw/proto.py @@ -98,6 +98,7 @@ def simpleerror(env, startreq, code, title, msg): """ % (title, title, htmlq(msg)) + buf = buf.encode("us-ascii") startreq("%i %s" % (code, title), [("Content-Type", "text/html"), ("Content-Length", str(len(buf)))]) return [buf] -- 2.11.0