Skip to content

Commit 426abbe

Browse files
committed
fix #58 on py26 ??
1 parent e26c454 commit 426abbe

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

textile/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def generate_tag(tag, content, attributes=None):
7373
# Python 2.6 doesn't have the tostringlist method, so we have to treat
7474
# it differently.
7575
element_tag = ElementTree.tostring(element, encoding=enc)
76+
element_tag = [v.decode(enc) for v in element_tag]
7677
element_text = re.sub(r"<\?xml version='1.0' encoding='UTF-8'\?>\n",
7778
'', element_tag)
7879
if content != six.text_type(' /'):

0 commit comments

Comments
 (0)