summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-07-28 10:25:55 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-07-28 10:25:55 (GMT)
commit7d12d9df136b45785fb945dcb4812fdb068a2498 (patch)
treea68da71ef9e618cad72d9d6b589d6bdbc589873e /Objects/bytesobject.c
parent6c779ea55329947577119b8a7ea732f6d540d516 (diff)
downloadcpython-7d12d9df136b45785fb945dcb4812fdb068a2498.zip
cpython-7d12d9df136b45785fb945dcb4812fdb068a2498.tar.gz
cpython-7d12d9df136b45785fb945dcb4812fdb068a2498.tar.bz2
Issue #12834: Fix PyBuffer_ToContiguous() for non-contiguous arrays.
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 14bd8e6..bf9259f 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -2591,7 +2591,6 @@ PyBytes_FromObject(PyObject *x)
new = PyBytes_FromStringAndSize(NULL, view.len);
if (!new)
goto fail;
- /* XXX(brett.cannon): Better way to get to internal buffer? */
if (PyBuffer_ToContiguous(((PyBytesObject *)new)->ob_sval,
&view, view.len, 'C') < 0)
goto fail;