File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 55 # ctypes is an optional module. If it's not present, we're limited in what
66 # we can tell about the system, but we don't want to prevent the module
77 # from working.
8- print ("ctypes isn't available; iOS system calls will not be available" )
8+ print ("ctypes isn't available; iOS system calls will not be available" , file = sys . stderr )
99 objc = None
1010else :
1111 # ctypes is available. Load the ObjC library, and wrap the objc_getClass,
1212 # sel_registerName methods
1313 lib = util .find_library ("objc" )
1414 if lib is None :
1515 # Failed to load the objc library
16- raise RuntimeError ("ObjC runtime library couldn't be loaded" )
16+ raise ImportError ("ObjC runtime library couldn't be loaded" )
1717
1818 objc = cdll .LoadLibrary (lib )
1919 objc .objc_getClass .restype = c_void_p
You can’t perform that action at this time.
0 commit comments