Commit 81019f42 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #948 from kmod/istype_fix

IsType fix
parents 641ab849 9b268a7f
......@@ -1560,7 +1560,7 @@ Box* getattrInternalEx(Box* obj, BoxedString* attr, GetattrRewriteArgs* rewrite_
if (S == CAPI) {
try {
assert(!PyType_Check(obj)); // There would be a tp_getattro
assert(!PyType_Check(obj) || cls_only); // There would be a tp_getattro
return getattrInternalGeneric<false>(obj, attr, rewrite_args, cls_only, for_call, bind_obj_out,
r_bind_obj_out);
} 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