summaryrefslogtreecommitdiffstats
path: root/Objects/funcobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-10-21 22:15:08 (GMT)
committerGuido van Rossum <guido@python.org>1990-10-21 22:15:08 (GMT)
commit2a9096b5f9d90c6d90a9386c82214237ffc69167 (patch)
tree03c72b99e99ca71c4794e361713981e683b9c5c2 /Objects/funcobject.c
parent4ab9b4c9adbd5ed42bc163033b3a01572b527ca3 (diff)
downloadcpython-2a9096b5f9d90c6d90a9386c82214237ffc69167.zip
cpython-2a9096b5f9d90c6d90a9386c82214237ffc69167.tar.gz
cpython-2a9096b5f9d90c6d90a9386c82214237ffc69167.tar.bz2
New errors.
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r--Objects/funcobject.c4
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;