Kaydet (Commit) 68c35d01 authored tarafından Guido van Rossum's avatar Guido van Rossum

Move err_badarg() and err_nomme() to errors.c.

üst 165e67ed
...@@ -58,22 +58,6 @@ initmodule(name, methods) ...@@ -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. /* Argument list handling tools.
All return 1 for success, or call err_set*() and return 0 for failure */ All return 1 for success, or call err_set*() and return 0 for failure */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment