diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-11 20:42:25 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-11 20:42:25 (GMT) |
commit | 54e4ca76c9470b81e3ae72a23aac59907f633fe1 (patch) | |
tree | c047446edc6f057162cd318fadd2e13902ef21b2 /Objects | |
parent | 63194a774e47ab5c7a10a693ef53188cf24dce16 (diff) | |
download | cpython-54e4ca76c9470b81e3ae72a23aac59907f633fe1.zip cpython-54e4ca76c9470b81e3ae72a23aac59907f633fe1.tar.gz cpython-54e4ca76c9470b81e3ae72a23aac59907f633fe1.tar.bz2 |
typeobject.c: remove trailing spaces
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 5565b20..13ea1ca 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -2411,7 +2411,7 @@ PyType_FromSpecWithBases(PyType_Spec *spec, PyObject *bases) char *s; char *res_start = (char*)res; PyType_Slot *slot; - + /* Set the type name and qualname */ s = strrchr(spec->name, '.'); if (s == NULL) @@ -2432,7 +2432,7 @@ PyType_FromSpecWithBases(PyType_Spec *spec, PyObject *bases) type->tp_name = spec->name; if (!type->tp_name) goto fail; - + /* Adjust for empty tuple bases */ if (!bases) { base = &PyBaseObject_Type; @@ -2516,7 +2516,7 @@ PyType_FromSpecWithBases(PyType_Spec *spec, PyObject *bases) /* Set type.__module__ */ s = strrchr(spec->name, '.'); if (s != NULL) - _PyDict_SetItemId(type->tp_dict, &PyId___module__, + _PyDict_SetItemId(type->tp_dict, &PyId___module__, PyUnicode_FromStringAndSize( spec->name, (Py_ssize_t)(s - spec->name))); |