Skip to content

Commit 29b7548

Browse files
Merge pull request #14 from dvdkon/master
Fix tostring() by joining with bytes instead of str
2 parents 4d9f45d + 7d206df commit 29b7548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/emeraldtree/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ def write(self, file,
667667

668668
def tostring(element, encoding=None, method=None):
669669
data = tostringlist(element, encoding, method)
670-
return "".join(data)
670+
return b"".join(data)
671671

672672
##
673673
# Generates a string representation of an XML element, including all

0 commit comments

Comments
 (0)