diff options
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 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); |