Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(253311)

Unified Diff: Include/warnings.h

Issue 11619: On Windows, don't encode filenames in the import machinery
Patch Set: Created 5 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Include/symtable.h ('k') | Modules/parsermodule.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Include/warnings.h Mon Aug 26 14:05:19 2013 +0200
+++ b/Include/warnings.h Mon Aug 26 16:10:52 2013 +0200
@@ -17,6 +17,13 @@ PyAPI_FUNC(int) PyErr_WarnFormat(
Py_ssize_t stack_level,
const char *format, /* ASCII-encoded string */
...);
+PyAPI_FUNC(int) PyErr_WarnExplicitObject(
+ PyObject *category,
+ PyObject *message,
+ PyObject *filename,
+ int lineno,
+ PyObject *module,
+ PyObject *registry);
PyAPI_FUNC(int) PyErr_WarnExplicit(
PyObject *category,
const char *message, /* UTF-8 encoded string */
@@ -31,6 +38,7 @@ PyErr_WarnExplicitFormat(PyObject *categ
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)
@@ -40,4 +48,3 @@ PyErr_WarnExplicitFormat(PyObject *categ
}
#endif
#endif /* !Py_WARNINGS_H */
-
« no previous file with comments | « Include/symtable.h ('k') | Modules/parsermodule.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+