| commit | bd3a2e6b11816ad32ded60eb0f6e8bc36846a840 | [log] [tgz] |
|---|---|---|
| author | Guido van Rossum <guido@python.org> | Tue Dec 10 13:58:49 1991 +0000 |
| committer | Guido van Rossum <guido@python.org> | Tue Dec 10 13:58:49 1991 +0000 |
| tree | b2dad871068b486cf9dcf0c3c49a95295195169a | |
| parent | 3a62845094de4ea301fc1833d5037ae7d8376e46 [diff] |
Use AttributeError.
diff --git a/Objects/methodobject.c b/Objects/methodobject.c index d306587..3ebdb37 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c
@@ -170,6 +170,6 @@ 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; }