diff options
Diffstat (limited to 'cython/notification_proxy.pxi')
| -rw-r--r-- | cython/notification_proxy.pxi | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cython/notification_proxy.pxi b/cython/notification_proxy.pxi index ccc30f8..07a72d9 100644 --- a/cython/notification_proxy.pxi +++ b/cython/notification_proxy.pxi | |||
| @@ -89,11 +89,7 @@ cdef class NotificationProxyClient(PropertyListService): | |||
| 89 | cdef np_client_t _c_client | 89 | cdef np_client_t _c_client |
| 90 | 90 | ||
| 91 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): | 91 | def __cinit__(self, iDevice device not None, int port, *args, **kwargs): |
| 92 | cdef: | 92 | self.handle_error(np_client_new(device._c_dev, port, &self._c_client)) |
| 93 | iDevice dev = device | ||
| 94 | np_error_t err | ||
| 95 | err = np_client_new(dev._c_dev, port, &self._c_client) | ||
| 96 | self.handle_error(err) | ||
| 97 | 93 | ||
| 98 | def __dealloc__(self): | 94 | def __dealloc__(self): |
| 99 | cdef np_error_t err | 95 | cdef np_error_t err |
