diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-06-12 20:57:12 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-06-12 20:57:12 (GMT) |
commit | a6e3474d02639c13b42926e08aad0c85c531fe01 (patch) | |
tree | 22848e26cebc292aa79533cd174cc473dea433d5 /Include | |
parent | c5ae86b9d3b6e348b6d0ee77c050134749a18ccc (diff) | |
download | cpython-a6e3474d02639c13b42926e08aad0c85c531fe01.zip cpython-a6e3474d02639c13b42926e08aad0c85c531fe01.tar.gz cpython-a6e3474d02639c13b42926e08aad0c85c531fe01.tar.bz2 |
Add const qualifier to PyErr_SetFromErrnoWithFilename and to
PyErr_SetFromErrnoWithUnicodeFilename.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyerrors.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index b55fb4e..fedf913 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -185,10 +185,11 @@ PyAPI_FUNC(PyObject *) PyErr_NoMemory(void); PyAPI_FUNC(PyObject *) PyErr_SetFromErrno(PyObject *); PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithFilenameObject( PyObject *, PyObject *); -PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithFilename(PyObject *, char *); +PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithFilename( + PyObject *, const char *); #ifdef MS_WINDOWS PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithUnicodeFilename( - PyObject *, Py_UNICODE *); + PyObject *, const Py_UNICODE *); #endif /* MS_WINDOWS */ PyAPI_FUNC(PyObject *) PyErr_Format(PyObject *, const char *, ...) |