Use PyErr_WarnPy3k throughout
diff --git a/Objects/methodobject.c b/Objects/methodobject.c
index e641df1..240cc05 100644
--- a/Objects/methodobject.c
+++ b/Objects/methodobject.c
@@ -235,10 +235,8 @@
!PyCFunction_Check(other))
{
/* Py3K warning if types are not equal and comparison isn't == or != */
- if (Py_Py3kWarningFlag &&
- PyErr_Warn(PyExc_DeprecationWarning,
- "builtin_function_or_method inequality "
- "comparisons not supported in 3.x") < 0) {
+ if (PyErr_WarnPy3k("builtin_function_or_method inequality "
+ "comparisons not supported in 3.x", 1) < 0) {
return NULL;
}