summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-08-07 15:18:57 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-08-07 15:18:57 (GMT)
commit2863c10a86de1073d3e556779e326b6065347b2c (patch)
treefb8680b2ed102e8cb7385990dee716224e95e2c1 /Python
parent2f7f8c4a648b1f8a467840bab96f30b0c6f7374e (diff)
downloadcpython-2863c10a86de1073d3e556779e326b6065347b2c.zip
cpython-2863c10a86de1073d3e556779e326b6065347b2c.tar.gz
cpython-2863c10a86de1073d3e556779e326b6065347b2c.tar.bz2
Use Py_FatalError instead of abort.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c
index b671937..79756ea 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1186,7 +1186,8 @@ static PyObject *
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 @@ parsestr(struct compiling *com, char *s)
#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)