diff options
author | Guido van Rossum <guido@python.org> | 1994-11-10 22:41:15 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-11-10 22:41:15 (GMT) |
commit | 69d9eb9f56200173f6ad7f96ca18b85d5a5a991a (patch) | |
tree | cbce204bcbbccfe63055c19ae1888f6daa3debe1 | |
parent | 363ac7d5b6513e68b61008e2867ef23886e70619 (diff) | |
download | cpython-69d9eb9f56200173f6ad7f96ca18b85d5a5a991a.zip cpython-69d9eb9f56200173f6ad7f96ca18b85d5a5a991a.tar.gz cpython-69d9eb9f56200173f6ad7f96ca18b85d5a5a991a.tar.bz2 |
replace abort() calls by fatal()
-rw-r--r-- | Python/ceval.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index d567c9d..26b3ce3 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1456,12 +1456,8 @@ eval_code(co, globals, locals, owner, arg) } } else { - if (err_occurred()) { - fprintf(stderr, "XXX undetected error\n"); - abort(); - /* NOTREACHED */ - why = WHY_EXCEPTION; - } + if (err_occurred()) + fatal("XXX undetected error"); } #endif @@ -2058,10 +2054,8 @@ call_object(func, arg) else result = call_builtin(func, arg); - if (result == NULL && !err_occurred()) { - fprintf(stderr, "null result without error in call_object\n"); - abort(); - } + if (result == NULL && !err_occurred()) + fatal("null result without error in call_object"); return result; } @@ -2211,10 +2205,8 @@ call_function(func, arg) XDECREF(newarg); return NULL; } - if (!is_codeobject(co)) { - fprintf(stderr, "XXX Bad code\n"); - abort(); - } + if (!is_codeobject(co)) + fatal("XXX Bad code"); newlocals = newdictobject(); if (newlocals == NULL) { XDECREF(newarg); |