diff options
Diffstat (limited to 'cython/afc.pxi')
| -rw-r--r-- | cython/afc.pxi | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cython/afc.pxi b/cython/afc.pxi index 9200067..c33dbfd 100644 --- a/cython/afc.pxi +++ b/cython/afc.pxi | |||
| @@ -154,11 +154,7 @@ cdef class AfcClient(BaseService): | |||
| 154 | cdef afc_client_t _c_client | 154 | cdef afc_client_t _c_client |
| 155 | 155 | ||
| 156 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): | 156 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): |
| 157 | cdef: | 157 | self.handle_error(afc_client_new(device._c_dev, port, &(self._c_client))) |
| 158 | iDevice dev = device | ||
| 159 | afc_error_t err | ||
| 160 | err = afc_client_new(dev._c_dev, port, &(self._c_client)) | ||
| 161 | self.handle_error(err) | ||
| 162 | 158 | ||
| 163 | def __dealloc__(self): | 159 | def __dealloc__(self): |
| 164 | cdef afc_error_t err | 160 | cdef afc_error_t err |
