Skip to content

Commit

Permalink
Shuffle comments around. NULL checks only apply to calls with `str_…
Browse files Browse the repository at this point in the history
…check_setattr`.
  • Loading branch information
mitchellrj committed Oct 15, 2013
1 parent 301333b commit 1656c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/security/_proxy.c
Expand Up @@ -194,7 +194,6 @@ check(SecurityProxy *self, PyObject *meth, PyObject *name, PyObject *value)
&& meth == str_check
&& (PyObject_HasAttr(self->proxy_checker, str_check_with_value)
== 1)) {
// value is NULL if this is really a delattr call
r = PyObject_CallMethodObjArgs(self->proxy_checker,
str_check_with_value,
self->proxy.proxy_object, name,
Expand All @@ -203,6 +202,7 @@ check(SecurityProxy *self, PyObject *meth, PyObject *name, PyObject *value)
&& meth == str_check_setattr
&& PyObject_HasAttr(self->proxy_checker, str_check_delattr) == 1
) {
// value is NULL if this is really a delattr call
r = PyObject_CallMethodObjArgs(self->proxy_checker,
str_check_delattr,
self->proxy.proxy_object, name,
Expand Down

0 comments on commit 1656c2b

Please sign in to comment.