summaryrefslogtreecommitdiffstats
path: root/cython
diff options
context:
space:
mode:
Diffstat (limited to 'cython')
-rw-r--r--cython/plist.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx
index b148687..f6696d6 100644
--- a/cython/plist.pyx
+++ b/cython/plist.pyx
@@ -116,7 +116,7 @@ cdef class Node:
plist_to_bin(self._c_node, &out, &length)
try:
- return _from_string_and_size(out, length)
+ return bytes(out[:length])
finally:
if out != NULL:
libc.stdlib.free(out)