diff options
Diffstat (limited to 'cython/imobiledevice.pyx')
| -rw-r--r-- | cython/imobiledevice.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cython/imobiledevice.pyx b/cython/imobiledevice.pyx index aac4fdb..2a125aa 100644 --- a/cython/imobiledevice.pyx +++ b/cython/imobiledevice.pyx | |||
| @@ -176,7 +176,7 @@ from libc.stdlib cimport * | |||
| 176 | cdef class iDevice(Base): | 176 | cdef class iDevice(Base): |
| 177 | def __cinit__(self, object udid=None, *args, **kwargs): | 177 | def __cinit__(self, object udid=None, *args, **kwargs): |
| 178 | cdef char* c_udid = NULL | 178 | cdef char* c_udid = NULL |
| 179 | if isinstance(udid, basestring): | 179 | if isinstance(udid, (str, bytes)): |
| 180 | c_udid = <bytes>udid | 180 | c_udid = <bytes>udid |
| 181 | elif udid is not None: | 181 | elif udid is not None: |
| 182 | raise TypeError("iDevice's constructor takes a string or None as the udid argument") | 182 | raise TypeError("iDevice's constructor takes a string or None as the udid argument") |
