summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-10-21 22:09:12 +0000
committerGuido van Rossum <guido@python.org>1990-10-21 22:09:12 +0000
commit69cf0b653c19ac3db9d0f7f70e4c1833d90fb31f (patch)
treea2bf83286a68b3d6ca61715b6dfd2ff1b30f960d /Python/errors.c
parent1f29e7cc04b7ac554f5511dce850bb68bb1dcbe4 (diff)
downloadcpython-69cf0b653c19ac3db9d0f7f70e4c1833d90fb31f.tar.gz
Added err_badcall().
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 91ae730ae6..cba3f0226b 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -140,3 +140,9 @@ err_errno(exc)
DECREF(v);
return NULL;
}
+
+void
+err_badcall()
+{
+ err_setstr(SystemError, "bad argument to internal function");
+}