Author: Richard Plangger <planri...@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:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to