aboutsummaryrefslogtreecommitdiffstats
path: root/markdown.py
diff options
context:
space:
mode:
authorYuri Takhteyev <yuri@freewisdom.org>2008-08-06 16:47:07 -0700
committerYuri Takhteyev <yuri@freewisdom.org>2008-08-06 16:47:07 -0700
commitc78a1e723a915b96d7ce8190bf6e7549a0a2766b (patch)
treeaac58b15e112255ffde1998ab4208b6fa607e2ee /markdown.py
parent90c2963e01e4475aba53d27d8518f0c6cb219cfe (diff)
downloadmarkdown-c78a1e723a915b96d7ce8190bf6e7549a0a2766b.tar.gz
markdown-c78a1e723a915b96d7ce8190bf6e7549a0a2766b.tar.bz2
markdown-c78a1e723a915b96d7ce8190bf6e7549a0a2766b.zip
Switching from codecs.decode to codecs.utf_8_decode for compatibility with python2.3.
Diffstat (limited to 'markdown.py')
-rwxr-xr-xmarkdown.py2
1 files changed, 1 insertions, 1 deletions
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"