Commit aa27a9ac authored by Guido van Rossum's avatar Guido van Rossum

Use AttributeError.

parent 825731c2
......@@ -170,6 +170,6 @@ findmethod(ml, op, name)
if (strcmp(name, ml->ml_name) == 0)
return newmethodobject(ml->ml_name, ml->ml_meth, op);
}
err_setstr(NameError, name);
err_setstr(AttributeError, name);
return NULL;
}
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