Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 72504:950678c769e6
Clean up a few tabs that went in with PEP393.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Thu, 29 Sep 2011 00:58:57 +0300 |
| parents | 8beaa9a37387 |
| children | b534b56379cb |
line wrap: on
line diff
--- a/Objects/typeobject.c Thu Sep 29 00:18:19 2011 +0300 +++ b/Objects/typeobject.c Thu Sep 29 00:58:57 2011 +0300 @@ -2345,21 +2345,21 @@ return NULL; res->ht_name = PyUnicode_FromString(spec->name); if (!res->ht_name) - goto fail; + goto fail; res->ht_type.tp_name = _PyUnicode_AsString(res->ht_name); if (!res->ht_type.tp_name) - goto fail; + goto fail; res->ht_type.tp_basicsize = spec->basicsize; res->ht_type.tp_itemsize = spec->itemsize; res->ht_type.tp_flags = spec->flags | Py_TPFLAGS_HEAPTYPE; for (slot = spec->slots; slot->slot; slot++) { - if (slot->slot >= sizeof(slotoffsets)/sizeof(slotoffsets[0])) { - PyErr_SetString(PyExc_RuntimeError, "invalid slot offset"); - goto fail; - } - *(void**)(res_start + slotoffsets[slot->slot]) = slot->pfunc; + if (slot->slot >= sizeof(slotoffsets)/sizeof(slotoffsets[0])) { + PyErr_SetString(PyExc_RuntimeError, "invalid slot offset"); + goto fail; + } + *(void**)(res_start + slotoffsets[slot->slot]) = slot->pfunc; /* need to make a copy of the docstring slot, which usually points to a static string literal */ @@ -2367,7 +2367,7 @@ ssize_t len = strlen(slot->pfunc)+1; char *tp_doc = PyObject_MALLOC(len); if (tp_doc == NULL) - goto fail; + goto fail; memcpy(tp_doc, slot->pfunc, len); res->ht_type.tp_doc = tp_doc; }
