From: Guido van Rossum Date: Sun, 14 Oct 1990 20:02:48 +0000 (+0000) Subject: Move err_badarg() and err_nomme() to errors.c. X-Git-Tag: v0.9.8~1171 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68c35d01d6cba688c32ee6f639c83867ab1d8aa4;p=thirdparty%2FPython%2Fcpython.git Move err_badarg() and err_nomme() to errors.c. --- diff --git a/Python/modsupport.c b/Python/modsupport.c index eed7bddf2da6..159f98e1c681 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 */