diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2008-08-02 21:02:48 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2008-08-02 21:02:48 (GMT) |
commit | 2f89aa678549eae1557247a36ed9194af9a4f7b7 (patch) | |
tree | b8de431ef79fb42ca92d8601977a8ab5ac533ca8 /Objects/bytesobject.c | |
parent | 07431a302a3698bec8b9eb9debc9f630479141e3 (diff) | |
download | cpython-2f89aa678549eae1557247a36ed9194af9a4f7b7.zip cpython-2f89aa678549eae1557247a36ed9194af9a4f7b7.tar.gz cpython-2f89aa678549eae1557247a36ed9194af9a4f7b7.tar.bz2 |
#2538: bytes objects can only provide read-only buffers
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r-- | Objects/bytesobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index 471d09c..eeae0ff 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -965,7 +965,7 @@ static int string_buffer_getbuffer(PyBytesObject *self, Py_buffer *view, int flags) { return PyBuffer_FillInfo(view, (void *)self->ob_sval, Py_SIZE(self), - 0, flags); + 1, flags); } static PySequenceMethods string_as_sequence = { |