From: Neal Norwitz Date: Mon, 14 Nov 2005 00:47:57 +0000 (+0000) Subject: Use convenience function X-Git-Tag: v2.5a0~1165 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=daae6161b5b552f133c0d88b6d44071954dfaa87;p=thirdparty%2FPython%2Fcpython.git Use convenience function --- diff --git a/Python/asdl.c b/Python/asdl.c index efd345e104c8..07ad4b3ea4f3 100644 --- a/Python/asdl.c +++ b/Python/asdl.c @@ -10,7 +10,7 @@ asdl_seq_new(int size) seq = (asdl_seq *)PyObject_Malloc(n); if (!seq) { - PyErr_SetString(PyExc_MemoryError, "no memory"); + PyErr_NoMemory(); return NULL; } memset(seq, 0, n);