From: Fredrik Tolf Date: Wed, 16 Jan 2013 00:23:01 +0000 (+0100) Subject: Made appropriate Python3 changes. X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=commitdiff_plain;h=cb8bb5edc89f083d161a7c5c9f4ed904838e1266;hp=10ba659d32518d2d09b12ada86a380798b378fe7 Made appropriate Python3 changes. --- 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]