summaryrefslogtreecommitdiffstats
path: root/cython/lockdown.pxi
diff options
context:
space:
mode:
Diffstat (limited to 'cython/lockdown.pxi')
-rw-r--r--cython/lockdown.pxi6
1 files changed, 3 insertions, 3 deletions
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:
90 return result 90 return result
91 91
92cdef class LockdownClient(PropertyListService): 92cdef class LockdownClient(PropertyListService):
93 def __cinit__(self, iDevice device not None, bytes label="", bool handshake=True, *args, **kwargs): 93 def __cinit__(self, iDevice device not None, bytes label=b'', bint handshake=True, *args, **kwargs):
94 cdef: 94 cdef:
95 lockdownd_error_t err 95 lockdownd_error_t err
96 char* c_label = NULL 96 char* c_label = NULL
@@ -125,7 +125,7 @@ cdef class LockdownClient(PropertyListService):
125 raise 125 raise
126 finally: 126 finally:
127 if c_type != NULL: 127 if c_type != NULL:
128 stdlib.free(c_type) 128 free(c_type)
129 129
130 cpdef plist.Node get_value(self, bytes domain=None, bytes key=None): 130 cpdef plist.Node get_value(self, bytes domain=None, bytes key=None):
131 cdef: 131 cdef:
@@ -212,7 +212,7 @@ cdef class LockdownClient(PropertyListService):
212 raise 212 raise
213 finally: 213 finally:
214 if c_session_id != NULL: 214 if c_session_id != NULL:
215 stdlib.free(c_session_id) 215 free(c_session_id)
216 216
217 cpdef stop_session(self, bytes session_id): 217 cpdef stop_session(self, bytes session_id):
218 self.handle_error(lockdownd_stop_session(self._c_client, session_id)) 218 self.handle_error(lockdownd_stop_session(self._c_client, session_id))