diff Objects/methodobject.c @ 46573:aef3501d8e77 legacy-trunk

Use PyErr_WarnPy3k throughout
author Benjamin Peterson <benjamin@python.org>
date Sun, 27 Apr 2008 03:01:45 +0000
parents 84bb7701efba
children 7670005da8c5
line wrap: on
line diff
--- a/Objects/methodobject.c	Sun Apr 27 02:28:02 2008 +0000
+++ b/Objects/methodobject.c	Sun Apr 27 03:01:45 2008 +0000
@@ -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;
 		}