Commits

Ronald Oussoren committed e6203b4

Use DeprecationWarning for deprecated API

Comments (0)

Files changed (1)

pyobjc-core/Lib/objc/_descriptors.py

     return _namedselector
 
 def namedselector(name, signature=None):
-    warnings.warn("use objc.namedSelector instead of objc.namedselector", stacklevel=2)
+    warnings.warn("use objc.namedSelector instead of objc.namedselector", DeprecationWarning, stacklevel=2)
     return namedSelector(name, signature)
 
 def typedAccessor(typeSignature):