typeobject.c: remove trailing spaces

This commit is contained in:
Victor Stinner 2013-07-11 22:42:25 +02:00
parent 63194a774e
commit 54e4ca76c9
1 changed files with 3 additions and 3 deletions

View File

@ -2411,7 +2411,7 @@ PyType_FromSpecWithBases(PyType_Spec *spec, PyObject *bases)
char *s; char *s;
char *res_start = (char*)res; char *res_start = (char*)res;
PyType_Slot *slot; PyType_Slot *slot;
/* Set the type name and qualname */ /* Set the type name and qualname */
s = strrchr(spec->name, '.'); s = strrchr(spec->name, '.');
if (s == NULL) if (s == NULL)
@ -2432,7 +2432,7 @@ PyType_FromSpecWithBases(PyType_Spec *spec, PyObject *bases)
type->tp_name = spec->name; type->tp_name = spec->name;
if (!type->tp_name) if (!type->tp_name)
goto fail; goto fail;
/* Adjust for empty tuple bases */ /* Adjust for empty tuple bases */
if (!bases) { if (!bases) {
base = &PyBaseObject_Type; base = &PyBaseObject_Type;
@ -2516,7 +2516,7 @@ PyType_FromSpecWithBases(PyType_Spec *spec, PyObject *bases)
/* Set type.__module__ */ /* Set type.__module__ */
s = strrchr(spec->name, '.'); s = strrchr(spec->name, '.');
if (s != NULL) if (s != NULL)
_PyDict_SetItemId(type->tp_dict, &PyId___module__, _PyDict_SetItemId(type->tp_dict, &PyId___module__,
PyUnicode_FromStringAndSize( PyUnicode_FromStringAndSize(
spec->name, (Py_ssize_t)(s - spec->name))); spec->name, (Py_ssize_t)(s - spec->name)));