Added PyErr_WarnPy3k function. (issue 2671) I will be converting current Py3k warnings to the use of this function soon.
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index 133bac9..2998521 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -344,6 +344,14 @@
described there.
+.. cfunction:: int PyErr_WarnPy3k(char *message, int stacklevel)
+
+ Issue a :exc:`DeprecationWarning` with the given *message* and *stacklevel*
+ if the :cdata:`Py_Py3kWarningFlag` flag is enabled.
+
+ .. versionadded:: 2.6
+
+
.. cfunction:: int PyErr_CheckSignals()
.. index::