From c78a1e723a915b96d7ce8190bf6e7549a0a2766b Mon Sep 17 00:00:00 2001 From: Yuri Takhteyev Date: Wed, 6 Aug 2008 16:47:07 -0700 Subject: Switching from codecs.decode to codecs.utf_8_decode for compatibility with python2.3. --- markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown.py b/markdown.py index 2d24e02..99d3980 100755 --- a/markdown.py +++ b/markdown.py @@ -1919,7 +1919,7 @@ class Markdown: indentETree(root) - xml = codecs.decode(etree.tostring(root, encoding="utf8"), "utf8") + xml, length = codecs.utf_8_decode(etree.tostring(root, encoding="utf8")) if self.stripTopLevelTags: xml = xml.strip()[44:-7] + "\n" -- cgit v1.2.3