diff options
Diffstat (limited to 'cython')
| -rw-r--r-- | cython/plist.pyx | 1 |
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 | |||
| 2 | cimport libc.stdlib | 2 | cimport libc.stdlib |
| 3 | from libc.stdint cimport * | 3 | from libc.stdint cimport * |
| 4 | 4 | ||
| 5 | # https://groups.google.com/forum/#!topic/cython-users/xoKNFTRagvk | ||
| 5 | cdef _from_string_and_size(char *s, size_t length): | 6 | cdef _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] |
