]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Move err_badarg() and err_nomme() to errors.c.
authorGuido van Rossum <guido@python.org>
Sun, 14 Oct 1990 20:02:48 +0000 (20:02 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 14 Oct 1990 20:02:48 +0000 (20:02 +0000)
Python/modsupport.c

index eed7bddf2da6ad944c6ae9b2e90f3d7b8826f3ac..159f98e1c6819f4494abf4b333a72ded88f02049 100644 (file)
@@ -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 */