commit | 2b654f74c23de18c25a9e0b36979322ef461223c | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sun Oct 14 20:03:32 1990 +0000 |
committer | Guido van Rossum <guido@python.org> | Sun Oct 14 20:03:32 1990 +0000 |
tree | aa52b4386765dfeee3727549f1f144b315dc0eb0 | |
parent | 0539ba2c742d96b09922e9795086be1dc39c82a1 [diff] [blame] |
New error handling in getattr().
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 4879620..be4f300 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c
@@ -9,6 +9,7 @@ #include "fileobject.h" #include "methodobject.h" #include "objimpl.h" +#include "errors.h" typedef struct { OB_HEAD @@ -248,7 +249,7 @@ return newmethodobject(ml->ml_name, ml->ml_meth, (object *)f); } - errno = ESRCH; + err_setstr(NameError, name); return NULL; }