Author: Devin Jeanpierre <jeanpierr...@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()
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to