summaryrefslogtreecommitdiffstats
path: root/cython
diff options
context:
space:
mode:
Diffstat (limited to 'cython')
-rw-r--r--cython/plist.pyx1
1 files changed, 1 insertions, 0 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx
index 95f9be7..e08d76a 100644
--- a/cython/plist.pyx
+++ b/cython/plist.pyx
@@ -2,6 +2,7 @@ cimport cpython
2cimport libc.stdlib 2cimport libc.stdlib
3from libc.stdint cimport * 3from libc.stdint cimport *
4 4
5# https://groups.google.com/forum/#!topic/cython-users/xoKNFTRagvk
5cdef _from_string_and_size(char *s, size_t length): 6cdef _from_string_and_size(char *s, size_t length):
6 if PY_MAJOR_VERSION < 3 or s == NULL: 7 if PY_MAJOR_VERSION < 3 or s == NULL:
7 return s[:length] 8 return s[:length]