summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):
977 node = Dict(value) 977 node = Dict(value)
978 elif type(value) in (list, set, tuple): 978 elif type(value) in (list, set, tuple):
979 node = Array(value) 979 node = Array(value)
980 else:
981 node = value
980 982
981 if fmt == FMT_XML: 983 if fmt == FMT_XML:
982 return node.to_xml() 984 return node.to_xml().encode('utf-8')
983 985
984 return node.to_bin() 986 return node.to_bin()