PyString_InternFromString -> PyUnicode_InternFromString

This commit is contained in:
Thomas Heller 2008-06-10 15:30:51 +00:00
parent b795f528b2
commit b1ef6735ba
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }