Commit 0bae98b5 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Ref fix to get files somewhat working

parent 25606f27
......@@ -730,16 +730,13 @@ extern "C" PyObject* _PyObject_CallMethod_SizeT(PyObject* o, const char* name, c
argspec = ArgPassSpec(1);
} else
argspec = ArgPassSpec(0);
AUTO_XDECREF(args);
tmp = callattrInternal<ExceptionStyle::CAPI, NOT_REWRITABLE>(o, internStringMortal(name), CLASS_OR_INST, NULL,
argspec, args, NULL, NULL, NULL, NULL);
tmp = callattrInternal<ExceptionStyle::CAPI, NOT_REWRITABLE>(o, autoDecref(internStringMortal(name)), CLASS_OR_INST,
NULL, argspec, args, NULL, NULL, NULL, NULL);
if (!tmp && !PyErr_Occurred())
PyErr_Format(PyExc_AttributeError, "'%.50s' object has no attribute '%.400s'", o->cls->tp_name, name);
Py_DECREF(args);
Py_DECREF(o);
return tmp;
}
......
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