]> granicus.if.org Git - python/commitdiff
CObject use is marked as a Py3k warning, not a deprecation warning
authorJesus Cea <jcea@jcea.es>
Thu, 4 Nov 2010 21:39:52 +0000 (21:39 +0000)
committerJesus Cea <jcea@jcea.es>
Thu, 4 Nov 2010 21:39:52 +0000 (21:39 +0000)
Misc/NEWS
Objects/cobject.c

index c39dd86da07a1138646b8fbc8266b1bced2c485b..a667fa3398f7fce708eff1cbdcccf54bbc0b8fd8 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -25,6 +25,9 @@ Core and Builtins
 - Issue #9862: Compensate for broken PIPE_BUF in AIX by hard coding
   its value as the default 512 when compiling on AIX.
 
+- Issue #9675: CObject use is marked as a Py3k warning, not a deprecation
+  warning.
+
 - Issue #10068: Global objects which have reference cycles with their module's
   dict are now cleared again. This causes issue #7140 to appear again.
 
index 72123f440a645440d93c6d9ae6c07bf892edb988..355421e635216137e97ccf217e78c2c9be0bb7a1 100644 (file)
@@ -11,8 +11,7 @@ typedef void (*destructor2)(void *, void*);
 
 static int cobject_deprecation_warning(void)
 {
-    return PyErr_WarnEx(PyExc_PendingDeprecationWarning,
-        "The CObject type is marked Pending Deprecation in Python 2.7.  "
+    return PyErr_WarnPy3k("CObject type is not supported in 3.x. "
         "Please use capsule objects instead.", 1);
 }