Mercurial > pygame
diff src/pixelarray.c @ 2120:42e2bde1a12c
Use capsule objects in preference to cobject objects. This allows Pygame to build an run from Python 3.2, which has to cobjects.
| author | Lenard Lindstrom <len-l@telus.net> |
|---|---|
| date | Wed, 22 Sep 2010 20:18:17 +0000 |
| parents | 0d661c00c1aa |
| children | 7b81f1162a96 |
line wrap: on
line diff
--- a/src/pixelarray.c Tue Sep 21 19:25:02 2010 +0000 +++ b/src/pixelarray.c Wed Sep 22 20:18:17 2010 +0000 @@ -2173,7 +2173,7 @@ c_api[0] = &PyPixelArray_Type; c_api[1] = PyPixelArray_New; - apiobj = PyCObject_FromVoidPtr (c_api, NULL); + apiobj = encapsulate_api (c_api, "pixelarray"); if (apiobj == NULL) { DECREF_MOD (module);
