Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1607:689abc6648a5
Date: 2014-12-28 06:29 +0100
http://bitbucket.org/cffi/cffi/changeset/689abc6648a5/

Log:    Python 3 compat

diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -5166,7 +5166,7 @@
         return NULL;
     }
 
-    if (PyString_Check(x) || PyUnicode_Check(x) ||
+    if (PyBytes_Check(x) || PyText_Check(x) ||
         PyByteArray_Check(x) /* <= this one here for PyPy compatibility */ ) {
         PyErr_SetString(PyExc_TypeError,
                         "from_buffer() cannot return the address of the "
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to