diff options
| author | 2020-04-14 02:51:05 +0200 | |
|---|---|---|
| committer | 2020-04-14 02:51:05 +0200 | |
| commit | fbee194fd9cc25e7438e73896ba81020ef1dd266 (patch) | |
| tree | a91809f21b44f5224b0c9a50a6b003b3140aea5f /cython | |
| parent | 92b3f61b078863e04b302f564557959f93647d57 (diff) | |
| download | libplist-fbee194fd9cc25e7438e73896ba81020ef1dd266.tar.gz libplist-fbee194fd9cc25e7438e73896ba81020ef1dd266.tar.bz2 | |
cython: Fix get_value for Data nodes
Diffstat (limited to 'cython')
| -rw-r--r-- | cython/plist.pyx | 6 | 
1 files changed, 1 insertions, 5 deletions
| diff --git a/cython/plist.pyx b/cython/plist.pyx index be3fe8a..bfecf85 100644 --- a/cython/plist.pyx +++ b/cython/plist.pyx @@ -2,10 +2,6 @@ cimport cpython  cimport libc.stdlib  from libc.stdint cimport * -# https://groups.google.com/forum/#!topic/cython-users/xoKNFTRagvk -cdef _from_string_and_size(char *s, size_t length): -    return s[:length].encode('utf-8') -  cdef extern from *:      ctypedef enum plist_type:          PLIST_BOOLEAN, @@ -553,7 +549,7 @@ cdef class Data(Node):          plist_get_data_val(self._c_node, &val, &length)          try: -            return _from_string_and_size(val, length) +            return bytes(val[:length])          finally:              libc.stdlib.free(val) | 
