[pypy-commit] cffi default: Py3k fix

arigo noreply at buildbot.pypy.org
Thu Aug 1 16:31:18 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1312:6493499556ea
Date: 2013-08-01 16:30 +0200
http://bitbucket.org/cffi/cffi/changeset/6493499556ea/

Log:	Py3k fix

diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -5325,11 +5325,11 @@
     if (PyType_Ready(&MiniBuffer_Type) < 0)
         INITERROR;
 
-    v = PyString_FromString("_cffi_backend");
+    v = PyText_FromString("_cffi_backend");
     if (v == NULL || PyDict_SetItemString(CData_Type.tp_dict,
                                           "__module__", v) < 0)
         INITERROR;
-    v = PyString_FromString("<cdata>");
+    v = PyText_FromString("<cdata>");
     if (v == NULL || PyDict_SetItemString(CData_Type.tp_dict,
                                           "__name__", v) < 0)
         INITERROR;


More information about the pypy-commit mailing list