diff Python/modsupport.c @ 12:36a220d3731a legacy-trunk

Move err_badarg() and err_nomme() to errors.c.
author Guido van Rossum <guido@python.org>
date Sun, 14 Oct 1990 20:02:48 +0000
parents fc6fcd7df4f7
children a6934380c6e7
line wrap: on
line diff
--- a/Python/modsupport.c	Sun Oct 14 20:02:26 1990 +0000
+++ b/Python/modsupport.c	Sun Oct 14 20:02:48 1990 +0000
@@ -58,22 +58,6 @@
 }
 
 
-/* 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 */