Reformat long lines.

This commit is contained in:
Jeremy Hylton 2007-02-26 16:14:51 +00:00
parent 10a4b0e6df
commit 7c1e347f73
1 changed files with 4 additions and 2 deletions

View File

@ -4115,7 +4115,8 @@ build_class(PyObject *methods, PyObject *bases, PyObject *name)
metaclass = (PyObject *) &PyClass_Type; metaclass = (PyObject *) &PyClass_Type;
Py_INCREF(metaclass); Py_INCREF(metaclass);
} }
result = PyObject_CallFunctionObjArgs(metaclass, name, bases, methods, NULL); result = PyObject_CallFunctionObjArgs(metaclass, name, bases, methods,
NULL);
Py_DECREF(metaclass); Py_DECREF(metaclass);
if (result == NULL && PyErr_ExceptionMatches(PyExc_TypeError)) { if (result == NULL && PyErr_ExceptionMatches(PyExc_TypeError)) {
/* A type error here likely means that the user passed /* A type error here likely means that the user passed
@ -4129,7 +4130,8 @@ build_class(PyObject *methods, PyObject *bases, PyObject *name)
if (PyString_Check(pvalue)) { if (PyString_Check(pvalue)) {
PyObject *newmsg; PyObject *newmsg;
newmsg = PyString_FromFormat( newmsg = PyString_FromFormat(
"Error when calling the metaclass bases\n %s", "Error when calling the metaclass bases\n"
" %s",
PyString_AS_STRING(pvalue)); PyString_AS_STRING(pvalue));
if (newmsg != NULL) { if (newmsg != NULL) {
Py_DECREF(pvalue); Py_DECREF(pvalue);