From 88ea0e3b553c26bddb7e49ec2aac6197c84aab25 Mon Sep 17 00:00:00 2001 From: wendyisgr33n Date: Mon, 30 Jul 2018 10:45:22 -0700 Subject: Fixed bytes/strings check in imobiledevice.pyx for compatibility with Python2/3 --- cython/imobiledevice.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = udid elif udid is not None: raise TypeError("iDevice's constructor takes a string or None as the udid argument") -- cgit v1.1-32-gdbae