]> granicus.if.org Git - python/commitdiff
Use convenience function
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 14 Nov 2005 00:47:57 +0000 (00:47 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 14 Nov 2005 00:47:57 +0000 (00:47 +0000)
Python/asdl.c

index efd345e104c8a2eed46e779f871c044f30803510..07ad4b3ea4f3b2dcb3325876a173938a0b83193f 100644 (file)
@@ -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);