diff options
author | Stefan Krah <skrah@bytereef.org> | 2012-03-05 08:30:47 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2012-03-05 08:30:47 (GMT) |
commit | 4e99a315b7d10049a16fb1529d2976f13dae5b71 (patch) | |
tree | ec1efe3ec503c28ab99a88aaa2b68605cfeb71d1 /Objects/memoryobject.c | |
parent | ab8f392ff0892e00f37773c74986501a5280da17 (diff) | |
download | cpython-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/memoryobject.c')
-rw-r--r-- | Objects/memoryobject.c | 3 |
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; } |