summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-10 13:58:49 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-10 13:58:49 (GMT)
commitbd3a2e6b11816ad32ded60eb0f6e8bc36846a840 (patch)
treeb2dad871068b486cf9dcf0c3c49a95295195169a /Objects
parent3a62845094de4ea301fc1833d5037ae7d8376e46 (diff)
downloadcpython-bd3a2e6b11816ad32ded60eb0f6e8bc36846a840.zip
cpython-bd3a2e6b11816ad32ded60eb0f6e8bc36846a840.tar.gz
cpython-bd3a2e6b11816ad32ded60eb0f6e8bc36846a840.tar.bz2
Use AttributeError.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/methodobject.c2
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;
}