summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-11-14 00:47:57 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-11-14 00:47:57 (GMT)
commitdaae6161b5b552f133c0d88b6d44071954dfaa87 (patch)
tree549eaef01bfd50d32c1bcc0d8312baa2f1df6732 /Python
parente8c0536d57d58a40d7bb8d81034bb9ba196fd078 (diff)
downloadcpython-daae6161b5b552f133c0d88b6d44071954dfaa87.zip
cpython-daae6161b5b552f133c0d88b6d44071954dfaa87.tar.gz
cpython-daae6161b5b552f133c0d88b6d44071954dfaa87.tar.bz2
Use convenience function
Diffstat (limited to 'Python')
-rw-r--r--Python/asdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/asdl.c b/Python/asdl.c
index efd345e..07ad4b3 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);