Mercurial > pygame
diff src/pixelarray.c @ 866:ba268d059b00
Fixed exception messages in PixelArray. Added unit tests for PixelArray. Fixed doc strings for PixelArray.
| author | marcus |
|---|---|
| date | Sat, 29 Dec 2007 13:02:47 +0000 |
| parents | 965348e5286c |
| children | a249a10980f0 |
line wrap: on
line diff
--- a/src/pixelarray.c Sat Dec 29 11:24:22 2007 +0000 +++ b/src/pixelarray.c Sat Dec 29 13:02:47 2007 +0000 @@ -831,7 +831,7 @@ colorvals = malloc (sizeof (Uint32) * seqsize); if (!colorvals) { - PyErr_SetString(PyExc_ValueError, "could not copy pixels"); + PyErr_SetString(PyExc_ValueError, "could not copy colors"); return -1; } @@ -1059,7 +1059,7 @@ GET_SLICE_VALS (array, start, end, ylen, ystep, xlen, xstep, padding, low, high, 1, surface->pitch); - PyErr_SetString (PyExc_NotImplementedError, "method not implementeda"); + PyErr_SetString (PyExc_NotImplementedError, "method not implemented"); return -1; }
