diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-11-14 00:47:57 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-11-14 00:47:57 (GMT) |
commit | daae6161b5b552f133c0d88b6d44071954dfaa87 (patch) | |
tree | 549eaef01bfd50d32c1bcc0d8312baa2f1df6732 /Python | |
parent | e8c0536d57d58a40d7bb8d81034bb9ba196fd078 (diff) | |
download | cpython-daae6161b5b552f133c0d88b6d44071954dfaa87.zip cpython-daae6161b5b552f133c0d88b6d44071954dfaa87.tar.gz cpython-daae6161b5b552f133c0d88b6d44071954dfaa87.tar.bz2 |
Use convenience function
Diffstat (limited to 'Python')
-rw-r--r-- | Python/asdl.c | 2 |
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); |