[pypy-commit] pypy refactor-buffer-api: Fix __pypy__.bytebuffer.
Manuel Jacob
noreply at buildbot.pypy.org
Wed Aug 28 20:34:42 CEST 2013
Author: Manuel Jacob
Branch: refactor-buffer-api
Changeset: r66422:d73e50624b31
Date: 2013-08-28 17:06 +0100
http://bitbucket.org/pypy/pypy/changeset/d73e50624b31/
Log: Fix __pypy__.bytebuffer.
diff --git a/pypy/module/__pypy__/bytebuffer.py b/pypy/module/__pypy__/bytebuffer.py
--- a/pypy/module/__pypy__/bytebuffer.py
+++ b/pypy/module/__pypy__/bytebuffer.py
@@ -4,6 +4,7 @@
from pypy.interpreter.buffer import RWBuffer
from pypy.interpreter.gateway import unwrap_spec
+from pypy.module.__builtin__.interp_memoryview import W_Buffer
class ByteBuffer(RWBuffer):
@@ -23,4 +24,4 @@
@unwrap_spec(length=int)
def bytebuffer(space, length):
- return space.wrap(ByteBuffer(length))
+ return W_Buffer(ByteBuffer(length))
More information about the pypy-commit
mailing list