Commit bc7e863c authored by Tim Peters's avatar Tim Peters

merge_class_dict(): Clear the error if __bases__ doesn't exist.

parent 28bc59f1
......@@ -1399,7 +1399,9 @@ merge_class_dict(PyObject* dict, PyObject* aclass)
/* Recursively merge in the base types' (if any) dicts. */
bases = PyObject_GetAttrString(aclass, "__bases__");
if (bases != NULL) {
if (bases == NULL)
PyErr_Clear();
else {
int i, n;
assert(PyTuple_Check(bases));
n = PyTuple_GET_SIZE(bases);
......
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