mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Preemptively backport the relevant parts of r65420
This commit is contained in:
parent
727bd0b687
commit
92a6240198
2 changed files with 4 additions and 1 deletions
|
|
@ -1329,7 +1329,7 @@ static int
|
|||
string_buffer_getbuffer(PyStringObject *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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue