diff options
author | Guido van Rossum <guido@python.org> | 1991-12-10 13:58:49 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-12-10 13:58:49 (GMT) |
commit | bd3a2e6b11816ad32ded60eb0f6e8bc36846a840 (patch) | |
tree | b2dad871068b486cf9dcf0c3c49a95295195169a /Objects/methodobject.c | |
parent | 3a62845094de4ea301fc1833d5037ae7d8376e46 (diff) | |
download | cpython-bd3a2e6b11816ad32ded60eb0f6e8bc36846a840.zip cpython-bd3a2e6b11816ad32ded60eb0f6e8bc36846a840.tar.gz cpython-bd3a2e6b11816ad32ded60eb0f6e8bc36846a840.tar.bz2 |
Use AttributeError.
Diffstat (limited to 'Objects/methodobject.c')
-rw-r--r-- | Objects/methodobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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; } |