diff options
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r-- | Objects/fileobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ filegetattr(f, name) return newmethodobject(ml->ml_name, ml->ml_meth, (object *)f); } - errno = ESRCH; + err_setstr(NameError, name); return NULL; } |