diff options
author | wendyisgr33n | 2018-07-30 10:45:22 -0700 |
---|---|---|
committer | Nikias Bassen | 2021-01-03 23:26:52 +0100 |
commit | 88ea0e3b553c26bddb7e49ec2aac6197c84aab25 (patch) | |
tree | 880b9d9c0f8f07e766aec4b5c46e8d4e49d383e8 /cython | |
parent | 1df0e4bfe86fde89772bf54d06c4546af85e303c (diff) | |
download | libimobiledevice-88ea0e3b553c26bddb7e49ec2aac6197c84aab25.tar.gz libimobiledevice-88ea0e3b553c26bddb7e49ec2aac6197c84aab25.tar.bz2 |
Fixed bytes/strings check in imobiledevice.pyx for compatibility with Python2/3
Diffstat (limited to 'cython')
-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 * cdef class iDevice(Base): def __cinit__(self, object udid=None, *args, **kwargs): cdef char* c_udid = NULL - if isinstance(udid, basestring): + if isinstance(udid, (str, bytes)): c_udid = <bytes>udid elif udid is not None: raise TypeError("iDevice's constructor takes a string or None as the udid argument") |