Skip to content

Commit

Permalink
Refactor Wrapper_getattro
Browse files Browse the repository at this point in the history
Due to __new__ there is always self->obj.
  • Loading branch information
stephan-hof committed Feb 22, 2017
1 parent 45b4470 commit 4a1bfd5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Acquisition/_Acquisition.c
Expand Up @@ -822,11 +822,7 @@ Wrapper_acquire(
static PyObject *
Wrapper_getattro(Wrapper *self, PyObject *oname)
{
if (self->obj || self->container)
return Wrapper_findattr(self, oname, NULL, NULL, NULL, 1, 1, 0, 0);

/* Maybe we are getting initialized? */
return Py_FindAttr(OBJECT(self),oname);
}

static PyObject *
Expand Down

0 comments on commit 4a1bfd5

Please sign in to comment.