summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-03-05 08:30:47 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-03-05 08:30:47 (GMT)
commit4e99a315b7d10049a16fb1529d2976f13dae5b71 (patch)
treeec1efe3ec503c28ab99a88aaa2b68605cfeb71d1 /Objects
parentab8f392ff0892e00f37773c74986501a5280da17 (diff)
downloadcpython-4e99a315b7d10049a16fb1529d2976f13dae5b71.zip
cpython-4e99a315b7d10049a16fb1529d2976f13dae5b71.tar.gz
cpython-4e99a315b7d10049a16fb1529d2976f13dae5b71.tar.bz2
Issue #14181: Allow memoryview construction from an object that uses the
getbuffer redirection scheme.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/memoryobject.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c
index e87abf5..8ffdd41 100644
--- a/Objects/memoryobject.c
+++ b/Objects/memoryobject.c
@@ -91,9 +91,6 @@ _PyManagedBuffer_FromObject(PyObject *base)
return NULL;
}
- /* Assume that master.obj is a new reference to base. */
- assert(mbuf->master.obj == base);
-
return (PyObject *)mbuf;
}