1. Python CFFI
  2. Untitled project
  3. cffi

Commits

Armin Rigo  committed 6493499

Py3k fix

  • Participants
  • Parent commits d66fc88
  • Branches default

Comments (0)

Files changed (1)

File c/_cffi_backend.c

View file
  • Ignore whitespace
     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;