Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 24630:43caa212b959 legacy-trunk
Use Py_FatalError instead of abort.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Wed, 07 Aug 2002 15:18:57 +0000 |
| parents | 6445e44fcb78 |
| children | ff05eef3a6d1 |
line wrap: on
line diff
--- a/Python/compile.c Wed Aug 07 15:05:42 2002 +0000 +++ b/Python/compile.c Wed Aug 07 15:18:57 2002 +0000 @@ -1186,7 +1186,8 @@ decode_utf8(char **sPtr, char *end, char* encoding) { #ifndef Py_USING_UNICODE - abort(); + Py_FatalError("decode_utf8 should not be called in this build."); + return NULL; #else PyObject *u, *v; char *s, *t; @@ -1319,7 +1320,7 @@ #ifndef Py_USING_UNICODE /* This should not happen - we never see any other encoding. */ - abort(); + Py_FatalError("cannot deal with encodings in this build."); #else PyObject* u = PyUnicode_DecodeUTF8(s, len, NULL); if (u == NULL)
