File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 5
5
# ctypes is an optional module. If it's not present, we're limited in what
6
6
# we can tell about the system, but we don't want to prevent the module
7
7
# 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 )
9
9
objc = None
10
10
else :
11
11
# ctypes is available. Load the ObjC library, and wrap the objc_getClass,
12
12
# sel_registerName methods
13
13
lib = util .find_library ("objc" )
14
14
if lib is None :
15
15
# 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" )
17
17
18
18
objc = cdll .LoadLibrary (lib )
19
19
objc .objc_getClass .restype = c_void_p
You can’t perform that action at this time.
0 commit comments