summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-08-07 16:21:51 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-08-07 16:21:51 (GMT)
commit3f19b10ca51ea84888f70405f75935c983271115 (patch)
tree755363cee3802ccbde255f494c79be6c679ebb6b
parent22c001bd295a3481687bd9224c71a0f6b275f8aa (diff)
downloadcpython-3f19b10ca51ea84888f70405f75935c983271115.zip
cpython-3f19b10ca51ea84888f70405f75935c983271115.tar.gz
cpython-3f19b10ca51ea84888f70405f75935c983271115.tar.bz2
Replace abort with Py_FatalError.
-rw-r--r--Modules/regexpr.c2
-rw-r--r--Objects/object.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/regexpr.c b/Modules/regexpr.c
index 8fe1321..e6a5417 100644
--- a/Modules/regexpr.c
+++ b/Modules/regexpr.c
@@ -1243,7 +1243,7 @@ char *re_compile_pattern(unsigned char *regex, int size, regexp_t bufp)
}
case Rquote:
{
- abort();
+ Py_FatalError("Rquote");
/*NOTREACHED*/
}
case Rbol:
diff --git a/Objects/object.c b/Objects/object.c
index e9251cc..70ff3ed 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -1782,7 +1782,7 @@ none_dealloc(PyObject* ignore)
/* This should never get called, but we also don't want to SEGV if
* we accidently decref None out of existance.
*/
- abort();
+ Py_FatalError("deallocating None");
}