Mercurial > pygame
diff src/bufferproxy.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 | 87541598228a |
| children | fb1a30254d10 |
line wrap: on
line diff
--- a/src/bufferproxy.c Tue Sep 21 19:25:02 2010 +0000 +++ b/src/bufferproxy.c Wed Sep 22 20:18:17 2010 +0000 @@ -405,7 +405,7 @@ c_api[0] = &PyBufferProxy_Type; c_api[1] = PyBufferProxy_New; - apiobj = PyCObject_FromVoidPtr (c_api, NULL); + apiobj = encapsulate_api (c_api, "bufferproxy"); if (apiobj == NULL) { DECREF_MOD (module); MODINIT_ERROR;
