summaryrefslogtreecommitdiffstats
path: root/Include/warnings.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-05-08 11:23:25 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-05-08 11:23:25 (GMT)
commit070cb3c9bed3fbdbda42c257e05d46adcbeb784e (patch)
tree747b3c3a8e2fd7ecdfb5123bcb425e47ba5913b2 /Include/warnings.h
parentd62a5143867096e1eeeca82b8db229dd27e94569 (diff)
downloadcpython-070cb3c9bed3fbdbda42c257e05d46adcbeb784e.zip
cpython-070cb3c9bed3fbdbda42c257e05d46adcbeb784e.tar.gz
cpython-070cb3c9bed3fbdbda42c257e05d46adcbeb784e.tar.bz2
Issue #1545463: At shutdown, defer finalization of codec modules so that stderr remains usable.
(should fix Windows buildbot failures on test_gc)
Diffstat (limited to 'Include/warnings.h')
-rw-r--r--Include/warnings.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/warnings.h b/Include/warnings.h
index b7db681..5a7dfb1 100644
--- a/Include/warnings.h
+++ b/Include/warnings.h
@@ -25,6 +25,12 @@ PyAPI_FUNC(int) PyErr_WarnExplicit(
const char *module, /* UTF-8 encoded string */
PyObject *registry);
+PyAPI_FUNC(int)
+PyErr_WarnExplicitFormat(PyObject *category,
+ const char *filename, int lineno,
+ const char *module, PyObject *registry,
+ const char *format, ...);
+
/* DEPRECATED: Use PyErr_WarnEx() instead. */
#ifndef Py_LIMITED_API
#define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1)