Commit b1ef6735 authored by Thomas Heller's avatar Thomas Heller

PyString_InternFromString -> PyUnicode_InternFromString

parent b795f528
...@@ -124,7 +124,7 @@ get_error_object(int **pspace) ...@@ -124,7 +124,7 @@ get_error_object(int **pspace)
return NULL; return NULL;
} }
if (error_object_name == NULL) { if (error_object_name == NULL) {
error_object_name = PyString_InternFromString("ctypes.error_object"); error_object_name = PyUnicode_InternFromString("ctypes.error_object");
if (error_object_name == NULL) if (error_object_name == NULL)
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment