summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2008-08-02 21:58:05 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2008-08-02 21:58:05 (GMT)
commit92a624019867885028fe0b326457b461e672eb3b (patch)
treec7b9f682618db83a5d5b2bd2980356fc7ecb948b /Objects
parent727bd0b6874b32a42762251888cdfc2484286867 (diff)
downloadcpython-92a624019867885028fe0b326457b461e672eb3b.zip
cpython-92a624019867885028fe0b326457b461e672eb3b.tar.gz
cpython-92a624019867885028fe0b326457b461e672eb3b.tar.bz2
Preemptively backport the relevant parts of r65420
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 0d2ceb1..6d53a09 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -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 = {