Commit 2368b3c4 authored by Michael W. Hudson's avatar Michael W. Hudson

Consistently use hard tabs for indentation.

Slightly de-Fultonize two bits of C layout.

No semantic changes.
parent 64e08147
...@@ -175,10 +175,7 @@ local_new(PyTypeObject *type, PyObject *args, PyObject *kw) ...@@ -175,10 +175,7 @@ local_new(PyTypeObject *type, PyObject *args, PyObject *kw)
if (type->tp_init == PyBaseObject_Type.tp_init if (type->tp_init == PyBaseObject_Type.tp_init
&& ((args && PyObject_IsTrue(args)) && ((args && PyObject_IsTrue(args))
|| || (kw && PyObject_IsTrue(kw)))) {
(kw && PyObject_IsTrue(kw))
)
) {
PyErr_SetString(PyExc_TypeError, PyErr_SetString(PyExc_TypeError,
"Initialization arguments are not supported"); "Initialization arguments are not supported");
return NULL; return NULL;
...@@ -246,8 +243,7 @@ local_dealloc(localobject *self) ...@@ -246,8 +243,7 @@ local_dealloc(localobject *self)
&& tstate->interp) { && tstate->interp) {
for(tstate = PyInterpreterState_ThreadHead(tstate->interp); for(tstate = PyInterpreterState_ThreadHead(tstate->interp);
tstate; tstate;
tstate = PyThreadState_Next(tstate) tstate = PyThreadState_Next(tstate))
)
if (tstate->dict && if (tstate->dict &&
PyDict_GetItem(tstate->dict, self->key)) PyDict_GetItem(tstate->dict, self->key))
PyDict_DelItem(tstate->dict, self->key); PyDict_DelItem(tstate->dict, self->key);
...@@ -288,8 +284,7 @@ _ldict(localobject *self) ...@@ -288,8 +284,7 @@ _ldict(localobject *self)
if (self->ob_type->tp_init != PyBaseObject_Type.tp_init && if (self->ob_type->tp_init != PyBaseObject_Type.tp_init &&
self->ob_type->tp_init((PyObject*)self, self->ob_type->tp_init((PyObject*)self,
self->args, self->kw) < 0 self->args, self->kw) < 0) {
) {
/* we need to get rid of ldict from thread so /* we need to get rid of ldict from thread so
we create a new one the next time we do an attr we create a new one the next time we do an attr
acces */ acces */
...@@ -355,10 +350,8 @@ local_getdict(localobject *self, void *closure) ...@@ -355,10 +350,8 @@ local_getdict(localobject *self, void *closure)
} }
static PyGetSetDef local_getset[] = { static PyGetSetDef local_getset[] = {
{"__dict__", {"__dict__", (getter)local_getdict, (setter)NULL,
(getter)local_getdict, (setter)0, "Local-data dictionary", NULL},
"Local-data dictionary",
NULL},
{NULL} /* Sentinel */ {NULL} /* Sentinel */
}; };
......
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