Author: Ronan Lamy <[email protected]>
Branch: py3.5
Changeset: r91413:10d7da5ff46a
Date: 2017-05-26 02:11 +0100
http://bitbucket.org/pypy/pypy/changeset/10d7da5ff46a/
Log: __wbuffer__ and __rbuffer__ aren't used in pypy3
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -218,12 +218,7 @@
return self.__buffer_w(space, flags).buffer_w(space, flags)
def __buffer_w(self, space, flags):
- if flags & space.BUF_WRITABLE:
- w_impl = space.lookup(self, '__wbuffer__')
- else:
- w_impl = space.lookup(self, '__rbuffer__')
- if w_impl is None:
- w_impl = space.lookup(self, '__buffer__')
+ w_impl = space.lookup(self, '__buffer__')
if w_impl is not None:
w_result = space.get_and_call_function(w_impl, self,
space.newint(flags))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit