Doubt about 'c' buffer solved by Stefan Krah

This commit is contained in:
Daniele Varrazzo 2012-12-22 00:51:47 +01:00
parent 6d9a25e63a
commit a04379210b

View File

@ -93,7 +93,6 @@ int chunk_getbuffer(PyObject *_self, Py_buffer *view, int flags)
chunkObject *self = (chunkObject*)_self;
rv = PyBuffer_FillInfo(view, _self, self->base, self->len, 1, flags);
if (rv == 0) {
/* TODO: is this really the way to do it? */
view->format = "c";
}
return rv;