From: Guido van Rossum Date: Tue, 10 Dec 1991 13:58:49 +0000 (+0000) Subject: Use AttributeError. X-Git-Tag: v0.9.8~711 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd3a2e6b11816ad32ded60eb0f6e8bc36846a840;p=thirdparty%2FPython%2Fcpython.git Use AttributeError. --- diff --git a/Objects/methodobject.c b/Objects/methodobject.c index d306587d6e63..3ebdb3779222 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; }