1. Ronald Oussoren
  2. pyobjc

Commits

Ronald Oussoren  committed e6203b4

Use DeprecationWarning for deprecated API

  • Participants
  • Parent commits 0a08157
  • Branches default

Comments (0)

Files changed (1)

File pyobjc-core/Lib/objc/_descriptors.py

View file
     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):