Author: Philip Jenvey <pjen...@underboss.org>
Branch: py3k
Changeset: r70076:4656f3c15efb
Date: 2014-03-18 20:02 -0700
http://bitbucket.org/pypy/pypy/changeset/4656f3c15efb/

Log:    fix translation

diff --git a/pypy/module/_io/interp_bytesio.py 
b/pypy/module/_io/interp_bytesio.py
--- a/pypy/module/_io/interp_bytesio.py
+++ b/pypy/module/_io/interp_bytesio.py
@@ -7,6 +7,7 @@
 from rpython.rlib.rarithmetic import r_longlong
 from pypy.module._io.interp_bufferedio import W_BufferedIOBase
 from pypy.module._io.interp_iobase import convert_size
+from pypy.objspace.std.memoryview import W_MemoryView
 import sys
 
 
@@ -121,7 +122,7 @@
         return space.wrap(size)
 
     def getbuffer_w(self, space):
-        return space.wrap(BytesIOBuffer(self))
+        return space.wrap(W_MemoryView(BytesIOBuffer(self)))
 
     def getvalue_w(self, space):
         self._check_closed(space)
diff --git a/pypy/module/cpyext/buffer.py b/pypy/module/cpyext/buffer.py
--- a/pypy/module/cpyext/buffer.py
+++ b/pypy/module/cpyext/buffer.py
@@ -37,5 +37,4 @@
         
 class CBuffer(CBufferMixin, buffer.Buffer):
     def __del__(self):
-        self.enqueue_for_destruction(self.space, CBufferMixin.destructor,
-                                     'internal __del__ of ')
+        CBufferMixin.destructor(self)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to