From 573c08c1b73048876b62d99ff8d82337dc8ce0a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Fri, 25 May 2007 15:46:59 +0000 Subject: 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. --- Include/pyerrors.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Include') diff --git a/Include/pyerrors.h b/Include/pyerrors.h index c72a5bd1b1..1f7b2ca06b 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( -- cgit v1.2.1