summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-11-14 00:47:57 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2005-11-14 00:47:57 +0000
commit40ad8f9ae8a5de863cf237a508c3f9af0031b884 (patch)
treed917bab132d934cd44c809f652c7f38c07fc47cb
parent6fab94fcd4fdef1987b52254d4e9303d98f1e714 (diff)
downloadcpython-40ad8f9ae8a5de863cf237a508c3f9af0031b884.tar.gz
Use convenience function
-rw-r--r--Python/asdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/asdl.c b/Python/asdl.c
index efd345e104..07ad4b3ea4 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);