summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-10-21 22:09:12 (GMT)
committerGuido van Rossum <guido@python.org>1990-10-21 22:09:12 (GMT)
commit683a0726420ec63213e95b0e0fdafc11a4dfc9ba (patch)
treea2bf83286a68b3d6ca61715b6dfd2ff1b30f960d /Python/errors.c
parent40d9304d66edcab3925c75e9d8ad093562cf5d7b (diff)
downloadcpython-683a0726420ec63213e95b0e0fdafc11a4dfc9ba.zip
cpython-683a0726420ec63213e95b0e0fdafc11a4dfc9ba.tar.gz
cpython-683a0726420ec63213e95b0e0fdafc11a4dfc9ba.tar.bz2
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 91ae730..cba3f02 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");
+}