attribute-less object is AttributeError, not TypeError

This commit is contained in:
Guido van Rossum 1995-01-07 11:54:44 +00:00
parent 5e56997969
commit 016564ab51
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ getattr(v, name)
char *name;
{
if (v->ob_type->tp_getattr == NULL) {
err_setstr(TypeError, "attribute-less object");
err_setstr(AttributeError, "attribute-less object");
return NULL;
}
else {