diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-05-25 15:46:59 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-05-25 15:46:59 (GMT) |
commit | 573c08c1b73048876b62d99ff8d82337dc8ce0a2 (patch) | |
tree | a66a43f5e3f362acb738877ab1551d69dc5e5450 /Include/pyerrors.h | |
parent | e65c86cca02a6cc5698ecf846d6340319e5fd803 (diff) | |
download | cpython-573c08c1b73048876b62d99ff8d82337dc8ce0a2.zip cpython-573c08c1b73048876b62d99ff8d82337dc8ce0a2.tar.gz cpython-573c08c1b73048876b62d99ff8d82337dc8ce0a2.tar.bz2 |
Change PyErr_Format() to generate a unicode string (by using
PyUnicode_FromFormatV() instead of PyString_FromFormatV()).
Change calls to PyErr_Format() to benefit from the new format
specifiers: Using %S, object instead of %s, PyString_AS_STRING(object)
with will work with unicode objects too.
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r-- | Include/pyerrors.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index c72a5bd..1f7b2ca 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -173,8 +173,7 @@ PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithUnicodeFilename( PyObject *, Py_UNICODE *); #endif /* Py_WIN_WIDE_FILENAMES */ -PyAPI_FUNC(PyObject *) PyErr_Format(PyObject *, const char *, ...) - Py_GCC_ATTRIBUTE((format(printf, 2, 3))); +PyAPI_FUNC(PyObject *) PyErr_Format(PyObject *, const char *, ...); #ifdef MS_WINDOWS PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithFilenameObject( |