summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-02-13 11:06:59 (GMT)
committerGeorg Brandl <georg@python.org>2009-02-13 11:06:59 (GMT)
commitcbb4958cd83675d49f6ee39154b3e392d2a69707 (patch)
tree210616e060390aad15e69bb5ffd885aa0ba3132d /Objects
parent0638a08a4b7998a40755f3f141c63f637b1ab144 (diff)
downloadcpython-cbb4958cd83675d49f6ee39154b3e392d2a69707.zip
cpython-cbb4958cd83675d49f6ee39154b3e392d2a69707.tar.gz
cpython-cbb4958cd83675d49f6ee39154b3e392d2a69707.tar.bz2
Fix warnings GCC emits where the argument of PyErr_Format is a single variable.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index c95889e..1b36a56 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1385,7 +1385,7 @@ int unicode_decode_call_errorhandler(const char *errors, PyObject **errorHandler
if (restuple == NULL)
goto onError;
if (!PyTuple_Check(restuple)) {
- PyErr_Format(PyExc_TypeError, &argparse[4]);
+ PyErr_SetString(PyExc_TypeError, &argparse[4]);
goto onError;
}
if (!PyArg_ParseTuple(restuple, argparse, &PyUnicode_Type, &repunicode, &newpos))
@@ -3440,7 +3440,7 @@ static PyObject *unicode_encode_call_errorhandler(const char *errors,
if (restuple == NULL)
return NULL;
if (!PyTuple_Check(restuple)) {
- PyErr_Format(PyExc_TypeError, &argparse[4]);
+ PyErr_SetString(PyExc_TypeError, &argparse[4]);
Py_DECREF(restuple);
return NULL;
}
@@ -4712,7 +4712,7 @@ static PyObject *unicode_translate_call_errorhandler(const char *errors,
if (restuple == NULL)
return NULL;
if (!PyTuple_Check(restuple)) {
- PyErr_Format(PyExc_TypeError, &argparse[4]);
+ PyErr_SetString(PyExc_TypeError, &argparse[4]);
Py_DECREF(restuple);
return NULL;
}