[pypy-commit] pypy py3k: try to get away away with this simply subclassing MemoryView
pjenvey
noreply at buildbot.pypy.org
Wed Mar 19 05:58:05 CET 2014
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r70081:8b3f43ab9322
Date: 2014-03-18 21:57 -0700
http://bitbucket.org/pypy/pypy/changeset/8b3f43ab9322/
Log: try to get away away with this simply subclassing MemoryView
diff --git a/pypy/module/_cffi_backend/cbuffer.py b/pypy/module/_cffi_backend/cbuffer.py
--- a/pypy/module/_cffi_backend/cbuffer.py
+++ b/pypy/module/_cffi_backend/cbuffer.py
@@ -4,7 +4,7 @@
from pypy.interpreter.gateway import unwrap_spec, interp2app
from pypy.interpreter.typedef import TypeDef, make_weakref_descr
from pypy.module._cffi_backend import cdataobj, ctypeptr, ctypearray
-from pypy.objspace.std.memoryview import W_Buffer
+from pypy.objspace.std.memoryview import W_MemoryView
from rpython.rtyper.annlowlevel import llstr
from rpython.rtyper.lltypesystem import rffi
@@ -42,9 +42,9 @@
# Override the typedef to narrow down the interface that's exposed to app-level
-class MiniBuffer(W_Buffer):
+class MiniBuffer(W_MemoryView):
def __init__(self, buffer, keepalive=None):
- W_Buffer.__init__(self, buffer)
+ W_MemoryView.__init__(self, buffer)
self.keepalive = keepalive
MiniBuffer.typedef = TypeDef(
More information about the pypy-commit
mailing list