diff options
author | Yuri Takhteyev <yuri@freewisdom.org> | 2008-08-06 16:47:07 -0700 |
---|---|---|
committer | Yuri Takhteyev <yuri@freewisdom.org> | 2008-08-06 16:47:07 -0700 |
commit | c78a1e723a915b96d7ce8190bf6e7549a0a2766b (patch) | |
tree | aac58b15e112255ffde1998ab4208b6fa607e2ee /markdown.py | |
parent | 90c2963e01e4475aba53d27d8518f0c6cb219cfe (diff) | |
download | markdown-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-x | markdown.py | 2 |
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" |