Author: Armin Rigo <ar...@tunes.org>
Branch: py3.5
Changeset: r87856:5ec980dfd035
Date: 2016-10-18 10:58 +0200
http://bitbucket.org/pypy/pypy/changeset/5ec980dfd035/

Log:    fix

diff --git a/pypy/module/cpyext/test/array.c b/pypy/module/cpyext/test/array.c
--- a/pypy/module/cpyext/test/array.c
+++ b/pypy/module/cpyext/test/array.c
@@ -2868,7 +2868,7 @@
     }
     if (PyObject_AsReadBuffer(obj, &ptr, &size) < 0)
         return NULL;
-    return PyString_FromStringAndSize((char*)ptr, size);
+    return PyBytes_FromStringAndSize((char*)ptr, size);
 }
 
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to