Skip to content

Commit

Permalink
Cosmetics: adjust a piece of code that I added earlier to the indenta…
Browse files Browse the repository at this point in the history
…tion

style of the overall file
  • Loading branch information
philikon committed Nov 21, 2006
1 parent 8deb579 commit 6051626
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions _Acquisition.c
Original file line number Diff line number Diff line change
Expand Up @@ -1391,12 +1391,13 @@ capi_aq_acquire(PyObject *self, PyObject *name, PyObject *filter,
/* Not wrapped; check if we have a __parent__ pointer. If that's
the case, we create a wrapper and pretend it's business as
usual */
if ((__parent__ = PyObject_GetAttr(self, py__parent__))) {
self = newWrapper(self, __parent__, (PyTypeObject*)&Wrappertype);
return Wrapper_findattr(
WRAPPER(self), name, filter, extra, OBJECT(self), 1, 1,
explicit, containment);
}
if ((__parent__ = PyObject_GetAttr(self, py__parent__)))
{
self = newWrapper(self, __parent__, (PyTypeObject*)&Wrappertype);
return Wrapper_findattr(
WRAPPER(self), name, filter, extra, OBJECT(self), 1, 1,
explicit, containment);
}

/* no filter, and no __parent__, so just getattr */
if (! filter) return PyObject_GetAttr(self, name);
Expand Down

0 comments on commit 6051626

Please sign in to comment.