[pypy-commit] pypy cpyext-old-buffers: Make error message consistent.

devin.jeanpierre pypy.commits at gmail.com
Fri May 20 11:52:34 EDT 2016


Author: Devin Jeanpierre <jeanpierreda at gmail.com>
Branch: cpyext-old-buffers
Changeset: r84533:1041b2d7a17b
Date: 2016-05-20 08:51 -0700
http://bitbucket.org/pypy/pypy/changeset/1041b2d7a17b/

Log:	Make error message consistent.

diff --git a/pypy/module/cpyext/typeobject.py b/pypy/module/cpyext/typeobject.py
--- a/pypy/module/cpyext/typeobject.py
+++ b/pypy/module/cpyext/typeobject.py
@@ -470,7 +470,7 @@
 def bf_getwritebuffer(space, w_buf, segment, ref):
     if segment != 0:
         raise oefmt(space.w_SystemError,
-                    "accessing non-existent segment")
+                    "accessing non-existent buffer segment")
 
     buf = space.writebuf_w(w_buf)
     ref[0] = buf.get_raw_address()


More information about the pypy-commit mailing list