We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8231a24 commit bf17986Copy full SHA for bf17986
Lib/_ios_support.py
@@ -5,15 +5,15 @@
5
# ctypes is an optional module. If it's not present, we're limited in what
6
# we can tell about the system, but we don't want to prevent the module
7
# from working.
8
- print("ctypes isn't available; iOS system calls will not be available")
+ print("ctypes isn't available; iOS system calls will not be available", file=sys.stderr)
9
objc = None
10
else:
11
# ctypes is available. Load the ObjC library, and wrap the objc_getClass,
12
# sel_registerName methods
13
lib = util.find_library("objc")
14
if lib is None:
15
# Failed to load the objc library
16
- raise RuntimeError("ObjC runtime library couldn't be loaded")
+ raise ImportError("ObjC runtime library couldn't be loaded")
17
18
objc = cdll.LoadLibrary(lib)
19
objc.objc_getClass.restype = c_void_p
0 commit comments