Commit c4ae31cc authored by Chris Toshok's avatar Chris Toshok

remove this initial check, since setattr (by way of setattrInternal) already handles this case.

parent d5ef3158
......@@ -158,8 +158,6 @@ extern "C" int PyObject_SetAttr(PyObject* v, PyObject* name, PyObject* value) no
}
extern "C" int PyObject_SetAttrString(PyObject* v, const char* name, PyObject* w) noexcept {
if (Py_TYPE(v)->tp_setattr != NULL)
return (*Py_TYPE(v)->tp_setattr)(v, const_cast<char*>(name), w);
try {
setattr(v, name, w);
} catch (ExcInfo e) {
......
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