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

Use AttributeError.

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