Added err_badcall().
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 @@
 		DECREF(v);
 	return NULL;
 }
+
+void
+err_badcall()
+{
+	err_setstr(SystemError, "bad argument to internal function");
+}