summaryrefslogtreecommitdiff
path: root/comms/libimobiledevice/files/patch-cython
blob: e4a19f7e4d8f4de86d255916bfee3decb46001f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Obtained from:	https://github.com/libimobiledevice/libimobiledevice/commit/0bf0f9e941c85d06ce4b5909d7a61b3a4f2a6a05

--- cython/debugserver.pxi.orig	2024-07-01 16:27:27 UTC
+++ cython/debugserver.pxi
@@ -43,13 +43,7 @@ cdef class DebugServerError(BaseError):
         BaseError.__init__(self, *args, **kwargs)
 
 
-# from http://stackoverflow.com/a/17511714
-# https://github.com/libimobiledevice/libimobiledevice/pull/198
-from cpython cimport PY_MAJOR_VERSION
-if PY_MAJOR_VERSION <= 2:
-    from cpython.string cimport PyString_AsString
-else:
-    from cpython.bytes cimport PyBytes_AsString as PyString_AsString
+from cpython.bytes cimport PyBytes_AsString as PyString_AsString
 cdef char ** to_cstring_array(list_str):
     if not list_str:
         return NULL