From 8ae62b60940ae0f33b1792703f3255e9c6a6a88a Mon Sep 17 00:00:00 2001 From: "Travis E. Oliphant" Date: Sun, 23 Sep 2007 02:00:13 +0000 Subject: Change PyBuffer to Py_buffer to be consistent with other non-object structures like Py_complex. Add some more functionality to the memoryview object. --- Objects/stringobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Objects/stringobject.c') diff --git a/Objects/stringobject.c b/Objects/stringobject.c index d26381251d..648711d41c 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -1160,7 +1160,7 @@ string_subscript(PyStringObject* self, PyObject* item) } static int -string_buffer_getbuffer(PyStringObject *self, PyBuffer *view, int flags) +string_buffer_getbuffer(PyStringObject *self, Py_buffer *view, int flags) { return PyBuffer_FillInfo(view, (void *)self->ob_sval, Py_Size(self), 0, flags); } -- cgit v1.2.1