X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=wrw%2Fsp%2Fxhtml.py;fp=wrw%2Fsp%2Fxhtml.py;h=02e8dd666ed2656730c85688a6a3c007b6aa54e0;hb=dc437c45b69d2c163141c422d354f2c25936061f;hp=70581382bd50f381d16074fe53e68c1c172644f2;hpb=a878e812794ab36d47721a680a1bea5f4e1bcc45;p=wrw.git diff --git a/wrw/sp/xhtml.py b/wrw/sp/xhtml.py index 7058138..02e8dd6 100644 --- a/wrw/sp/xhtml.py +++ b/wrw/sp/xhtml.py @@ -43,7 +43,7 @@ class htmlindenter(util.indenter, htmlformatter): def forreq(req, tree): # XXX: Use proper Content-Type for clients accepting it. req.ohead["Content-Type"] = "text/html; charset=utf-8" - buf = io.StringIO() + buf = io.BytesIO() htmlindenter.output(buf, tree, doctype=(doctype, dtd), charset="utf-8") return [buf.getvalue()]