[pypy-commit] pypy memoryview-attributes: buffer builtin has no flags argument, flags was provided at the position of the offset

plan_rich pypy.commits at gmail.com
Tue Aug 23 09:25:41 EDT 2016


Author: Richard Plangger <planrichi at gmail.com>
Branch: memoryview-attributes
Changeset: r86446:feafb2399ae8
Date: 2016-08-23 15:24 +0200
http://bitbucket.org/pypy/pypy/changeset/feafb2399ae8/

Log:	buffer builtin has no flags argument, flags was provided at the
	position of the offset

diff --git a/lib_pypy/_ctypes/basics.py b/lib_pypy/_ctypes/basics.py
--- a/lib_pypy/_ctypes/basics.py
+++ b/lib_pypy/_ctypes/basics.py
@@ -168,7 +168,7 @@
             return self.value
 
     def __buffer__(self, flags):
-        return buffer(self._buffer, flags)
+        return buffer(self._buffer)
 
     def _get_b_base(self):
         try:


More information about the pypy-commit mailing list