diff options
| author | 2014-01-31 15:25:33 -0800 | |
|---|---|---|
| committer | 2014-02-11 17:27:12 +0100 | |
| commit | 29672075fde96c132d685fad86efafecd0cc5444 (patch) | |
| tree | e0795a72cabc9d828b86fac9e0579bde7b12550c /cython/plist.pyx | |
| parent | f3857e207b5339a70b834d0575021f57432e272d (diff) | |
| download | libplist-29672075fde96c132d685fad86efafecd0cc5444.tar.gz libplist-29672075fde96c132d685fad86efafecd0cc5444.tar.bz2 | |
Add URL for credit
Diffstat (limited to 'cython/plist.pyx')
| -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] |
