diff options
author | Guido van Rossum <guido@python.org> | 1990-10-21 22:15:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1990-10-21 22:15:08 (GMT) |
commit | 2a9096b5f9d90c6d90a9386c82214237ffc69167 (patch) | |
tree | 03c72b99e99ca71c4794e361713981e683b9c5c2 /Objects/funcobject.c | |
parent | 4ab9b4c9adbd5ed42bc163033b3a01572b527ca3 (diff) | |
download | cpython-2a9096b5f9d90c6d90a9386c82214237ffc69167.zip cpython-2a9096b5f9d90c6d90a9386c82214237ffc69167.tar.gz cpython-2a9096b5f9d90c6d90a9386c82214237ffc69167.tar.bz2 |
New errors.
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r-- | Objects/funcobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index 1c6f6a6..1adc3bc 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -36,7 +36,7 @@ getfuncnode(op) object *op; { if (!is_funcobject(op)) { - errno = EBADF; + err_badcall(); return NULL; } return ((funcobject *) op) -> func_node; @@ -47,7 +47,7 @@ getfuncglobals(op) object *op; { if (!is_funcobject(op)) { - errno = EBADF; + err_badcall(); return NULL; } return ((funcobject *) op) -> func_globals; |