summaryrefslogtreecommitdiffstats
path: root/Python/modsupport.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-10-14 20:02:48 (GMT)
committerGuido van Rossum <guido@python.org>1990-10-14 20:02:48 (GMT)
commit68c35d01d6cba688c32ee6f639c83867ab1d8aa4 (patch)
treefa8f3c557b166cfd645bec6a8a6c84cfd887261d /Python/modsupport.c
parent165e67edaec7008797719d5f21c099eaac0c98d9 (diff)
downloadcpython-68c35d01d6cba688c32ee6f639c83867ab1d8aa4.zip
cpython-68c35d01d6cba688c32ee6f639c83867ab1d8aa4.tar.gz
cpython-68c35d01d6cba688c32ee6f639c83867ab1d8aa4.tar.bz2
Move err_badarg() and err_nomme() to errors.c.
Diffstat (limited to 'Python/modsupport.c')
-rw-r--r--Python/modsupport.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c
index eed7bdd..159f98e 100644
--- a/Python/modsupport.c
+++ b/Python/modsupport.c
@@ -58,22 +58,6 @@ initmodule(name, methods)
}
-/* Convenience functions to set a type error exception and return 0 */
-
-int
-err_badarg()
-{
- err_setstr(TypeError, "illegal argument type for built-in function");
- return 0;
-}
-
-object *
-err_nomem()
-{
- err_setstr(MemoryError, "in built-in function");
- return NULL;
-}
-
/* Argument list handling tools.
All return 1 for success, or call err_set*() and return 0 for failure */