mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
PyString_InternFromString -> PyUnicode_InternFromString
This commit is contained in:
parent
b795f528b2
commit
b1ef6735ba
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ get_error_object(int **pspace)
|
|||
return 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)
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue