Kaydet (Commit) bd3a2e6b authored tarafından Guido van Rossum's avatar Guido van Rossum

Use AttributeError.

üst 3a628450
......@@ -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