Kaydet (Commit) 54e4ca76 authored tarafından Victor Stinner's avatar Victor Stinner

typeobject.c: remove trailing spaces

üst 63194a77
...@@ -2411,7 +2411,7 @@ PyType_FromSpecWithBases(PyType_Spec *spec, PyObject *bases) ...@@ -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) ...@@ -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) ...@@ -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)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment