changeset 26008:59d57ea69ae6

reachableroots: consistently use short-form of PyErr_NoMemory()
author Augie Fackler <augie@google.com>
date Tue, 11 Aug 2015 14:50:39 -0400
parents 1ebf4ac07582
children bbb698697efc
files mercurial/parsers.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/parsers.c	Tue Aug 11 14:49:40 2015 -0400
+++ b/mercurial/parsers.c	Tue Aug 11 14:50:39 2015 -0400
@@ -1151,13 +1151,13 @@
 	/* Initialize internal datastructures */
 	tovisit = (int *)malloc((len + 1) * sizeof(int));
 	if (tovisit == NULL) {
-		PyErr_SetNone(PyExc_MemoryError);
+		PyErr_NoMemory();
 		goto release_reachable;
 	}
 
 	seen = (char *)calloc(len+1, 1);
 	if (seen == NULL) {
-		PyErr_SetNone(PyExc_MemoryError);
+		PyErr_NoMemory();
 		goto release_seen_and_tovisit;
 	}