Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r70151:144c447e88ff
Date: 2014-03-21 16:48 -0700
http://bitbucket.org/pypy/pypy/changeset/144c447e88ff/
Log: this now lives in baseobjspace after the buffer refactor
diff --git a/pypy/objspace/descroperation.py b/pypy/objspace/descroperation.py
--- a/pypy/objspace/descroperation.py
+++ b/pypy/objspace/descroperation.py
@@ -473,13 +473,6 @@
else:
return space.isinstance(w_inst, w_type)
- def buffer(space, w_obj):
- w_impl = space.lookup(w_obj, '__buffer__')
- if w_impl is None:
- raise oefmt(space.w_TypeError,
- "'%T' does not support the buffer interface", w_obj)
- return space.get_and_call_function(w_impl, w_obj)
-
# helpers
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit