summaryrefslogtreecommitdiffstats
path: root/cython
diff options
context:
space:
mode:
Diffstat (limited to 'cython')
-rw-r--r--cython/plist.pyx4
1 files changed, 3 insertions, 1 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx
index 5481308..8029995 100644
--- a/cython/plist.pyx
+++ b/cython/plist.pyx
@@ -977,8 +977,10 @@ cpdef object dumps(value, fmt=FMT_XML, sort_keys=True, skipkeys=False):
node = Dict(value)
elif type(value) in (list, set, tuple):
node = Array(value)
+ else:
+ node = value
if fmt == FMT_XML:
- return node.to_xml()
+ return node.to_xml().encode('utf-8')
return node.to_bin()