Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r68589:18ba4e72d2f7
Date: 2014-01-06 18:11 -0800
http://bitbucket.org/pypy/pypy/changeset/18ba4e72d2f7/

Log:    issue1571: less confusing error msg

diff --git a/pypy/module/_cffi_backend/ctypeptr.py 
b/pypy/module/_cffi_backend/ctypeptr.py
--- a/pypy/module/_cffi_backend/ctypeptr.py
+++ b/pypy/module/_cffi_backend/ctypeptr.py
@@ -81,7 +81,7 @@
               (self.ctitem.is_primitive_integer and
                self.ctitem.size == rffi.sizeof(lltype.Char))):
             if not space.isinstance_w(w_ob, space.w_str):
-                raise self._convert_error("str or list or tuple", w_ob)
+                raise self._convert_error("bytes or list or tuple", w_ob)
             s = space.str_w(w_ob)
             n = len(s)
             if self.length >= 0 and n > self.length:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to