From 2d9ecc3d805e616b2bf85c0b8e99737e9b30c89d Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 20 Mar 2012 22:56:33 +0100 Subject: cython: Update to latest API and fix deprecation warnings with cython 0.13+ --- cython/lockdown.pxi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cython/lockdown.pxi') diff --git a/cython/lockdown.pxi b/cython/lockdown.pxi index 8463738..b5207e8 100644 --- a/cython/lockdown.pxi +++ b/cython/lockdown.pxi @@ -90,7 +90,7 @@ cdef class LockdownPairRecord: return result cdef class LockdownClient(PropertyListService): - def __cinit__(self, iDevice device not None, bytes label="", bool handshake=True, *args, **kwargs): + def __cinit__(self, iDevice device not None, bytes label=b'', bint handshake=True, *args, **kwargs): cdef: lockdownd_error_t err char* c_label = NULL @@ -125,7 +125,7 @@ cdef class LockdownClient(PropertyListService): raise finally: if c_type != NULL: - stdlib.free(c_type) + free(c_type) cpdef plist.Node get_value(self, bytes domain=None, bytes key=None): cdef: @@ -212,7 +212,7 @@ cdef class LockdownClient(PropertyListService): raise finally: if c_session_id != NULL: - stdlib.free(c_session_id) + free(c_session_id) cpdef stop_session(self, bytes session_id): self.handle_error(lockdownd_stop_session(self._c_client, session_id)) -- cgit v1.1-32-gdbae