diff options
Diffstat (limited to 'Python/ceval.c')
| -rw-r--r-- | Python/ceval.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index b119e157b5..5f1b873e3d 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -4077,7 +4077,8 @@ build_class(PyObject *methods, PyObject *bases, PyObject *name)  			metaclass = (PyObject *) &PyType_Type;  		Py_INCREF(metaclass);  	} -	result = PyObject_CallFunctionObjArgs(metaclass, name, bases, methods, NULL); +	result = PyObject_CallFunctionObjArgs(metaclass, name, bases, methods, +                                              NULL);  	Py_DECREF(metaclass);  	if (result == NULL && PyErr_ExceptionMatches(PyExc_TypeError)) {  		/* A type error here likely means that the user passed @@ -4091,7 +4092,8 @@ build_class(PyObject *methods, PyObject *bases, PyObject *name)  		if (PyString_Check(pvalue)) {  			PyObject *newmsg;  			newmsg = PyString_FromFormat( -				"Error when calling the metaclass bases\n    %s", +				"Error when calling the metaclass bases\n" +                                "    %s",  				PyString_AS_STRING(pvalue));  			if (newmsg != NULL) {  				Py_DECREF(pvalue);  | 
