diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-11-14 00:47:57 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-11-14 00:47:57 +0000 |
commit | 40ad8f9ae8a5de863cf237a508c3f9af0031b884 (patch) | |
tree | d917bab132d934cd44c809f652c7f38c07fc47cb /Python/asdl.c | |
parent | 6fab94fcd4fdef1987b52254d4e9303d98f1e714 (diff) | |
download | cpython-40ad8f9ae8a5de863cf237a508c3f9af0031b884.tar.gz |
Use convenience function
Diffstat (limited to 'Python/asdl.c')
-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 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); |