[Python-checkins] r69579 - python/trunk/Objects/unicodeobject.c

georg.brandl python-checkins at python.org
Fri Feb 13 12:07:00 CET 2009


Author: georg.brandl
Date: Fri Feb 13 12:06:59 2009
New Revision: 69579
Log:
Fix warnings GCC emits where the argument of PyErr_Format is a single variable.
Modified:
 python/trunk/Objects/unicodeobject.c
Modified: python/trunk/Objects/unicodeobject.c
==============================================================================
--- python/trunk/Objects/unicodeobject.c	(original)
+++ python/trunk/Objects/unicodeobject.c	Fri Feb 13 12:06:59 2009
@@ -1385,7 +1385,7 @@
 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 @@
 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 @@
 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;
 }


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /