diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-13 14:03:48 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-13 14:03:48 (GMT) |
commit | 4a2b7a1b141fcbed6da81d942c9db776874c2fa9 (patch) | |
tree | 0288e22145e35c9d5d92c051800bf1c85e5858b8 /Include/warnings.h | |
parent | b4b8eb916372dcb566740455122a28b5ed9631f9 (diff) | |
download | cpython-4a2b7a1b141fcbed6da81d942c9db776874c2fa9.zip cpython-4a2b7a1b141fcbed6da81d942c9db776874c2fa9.tar.gz cpython-4a2b7a1b141fcbed6da81d942c9db776874c2fa9.tar.bz2 |
Issue #9425: Create PyErr_WarnFormat() function
Similar to PyErr_WarnEx() but use PyUnicode_FromFormatV() to format the warning
message.
Strip also some trailing spaces.
Diffstat (limited to 'Include/warnings.h')
-rw-r--r-- | Include/warnings.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/warnings.h b/Include/warnings.h index f54eabd..c84cb9f 100644 --- a/Include/warnings.h +++ b/Include/warnings.h @@ -7,6 +7,7 @@ extern "C" { PyAPI_FUNC(PyObject*) _PyWarnings_Init(void); PyAPI_FUNC(int) PyErr_WarnEx(PyObject *, const char *, Py_ssize_t); +PyAPI_FUNC(int) PyErr_WarnFormat(PyObject *, Py_ssize_t, const char *, ...); PyAPI_FUNC(int) PyErr_WarnExplicit(PyObject *, const char *, const char *, int, const char *, PyObject *); |