diff options
| author | 2025-06-01 15:20:02 +0200 | |
|---|---|---|
| committer | 2025-06-01 15:20:02 +0200 | |
| commit | 0bf0f9e941c85d06ce4b5909d7a61b3a4f2a6a05 (patch) | |
| tree | c0ea199abd2334f9b49dae3bb5cd860970ec2047 | |
| parent | a6b6c35d1550acbd2552d49c2fe38115deec8fc0 (diff) | |
| download | libimobiledevice-0bf0f9e941c85d06ce4b5909d7a61b3a4f2a6a05.tar.gz libimobiledevice-0bf0f9e941c85d06ce4b5909d7a61b3a4f2a6a05.tar.bz2 | |
[cython] Fix build
| -rw-r--r-- | cython/debugserver.pxi | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cython/debugserver.pxi b/cython/debugserver.pxi index a3b7d1e..fb96320 100644 --- a/cython/debugserver.pxi +++ b/cython/debugserver.pxi | |||
| @@ -43,13 +43,7 @@ cdef class DebugServerError(BaseError): | |||
| 43 | BaseError.__init__(self, *args, **kwargs) | 43 | BaseError.__init__(self, *args, **kwargs) |
| 44 | 44 | ||
| 45 | 45 | ||
| 46 | # from http://stackoverflow.com/a/17511714 | 46 | from cpython.bytes cimport PyBytes_AsString as PyString_AsString |
| 47 | # https://github.com/libimobiledevice/libimobiledevice/pull/198 | ||
| 48 | from cpython cimport PY_MAJOR_VERSION | ||
| 49 | if PY_MAJOR_VERSION <= 2: | ||
| 50 | from cpython.string cimport PyString_AsString | ||
| 51 | else: | ||
| 52 | from cpython.bytes cimport PyBytes_AsString as PyString_AsString | ||
| 53 | cdef char ** to_cstring_array(list_str): | 47 | cdef char ** to_cstring_array(list_str): |
| 54 | if not list_str: | 48 | if not list_str: |
| 55 | return NULL | 49 | return NULL |
