summaryrefslogtreecommitdiffstats
path: root/cython/file_relay.pxi
diff options
context:
space:
mode:
Diffstat (limited to 'cython/file_relay.pxi')
-rw-r--r--cython/file_relay.pxi6
1 files changed, 1 insertions, 5 deletions
diff --git a/cython/file_relay.pxi b/cython/file_relay.pxi
index fd7b67e..beb429b 100644
--- a/cython/file_relay.pxi
+++ b/cython/file_relay.pxi
@@ -38,11 +38,7 @@ cdef class FileRelayClient(PropertyListService):
cdef file_relay_client_t _c_client
def __cinit__(self, iDevice device not None, int port, *args, **kwargs):
- cdef:
- iDevice dev = device
- file_relay_error_t err
- err = file_relay_client_new(dev._c_dev, port, &self._c_client)
- self.handle_error(err)
+ self.handle_error(file_relay_client_new(device._c_dev, port, &self._c_client))
def __dealloc__(self):
cdef file_relay_error_t err