From 0bf0f9e941c85d06ce4b5909d7a61b3a4f2a6a05 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 1 Jun 2025 15:20:02 +0200 Subject: [cython] Fix build --- cython/debugserver.pxi | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'cython/debugserver.pxi') 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): 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 -- cgit v1.1-32-gdbae