summaryrefslogtreecommitdiffstats
path: root/Objects/classobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-10-14 19:58:09 (GMT)
committerGuido van Rossum <guido@python.org>1990-10-14 19:58:09 (GMT)
commit3cf0ddfd94fb683ba265c40f60bd1e329848f1c6 (patch)
tree9d14fab311e60f503cdc9fbec8ac62e985462db5 /Objects/classobject.c
parent85a5fbbdfea617f6cc8fae82c9e8c2b5c424436d (diff)
downloadcpython-3cf0ddfd94fb683ba265c40f60bd1e329848f1c6.zip
cpython-3cf0ddfd94fb683ba265c40f60bd1e329848f1c6.tar.gz
cpython-3cf0ddfd94fb683ba265c40f60bd1e329848f1c6.tar.bz2
(Some) new error handling.
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r--Objects/classobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c
index 9a55280..6ed97a9 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -11,6 +11,7 @@
#include "funcobject.h"
#include "classobject.h"
#include "objimpl.h"
+#include "errors.h"
typedef struct {
OB_HEAD
@@ -71,7 +72,7 @@ class_getattr(op, name)
return v;
}
}
- errno = ESRCH;
+ err_setstr(NameError, name);
return NULL;
}