Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1ef673

Browse files
author
Thomas Heller
committed
PyString_InternFromString -> PyUnicode_InternFromString
1 parent b795f52 commit b1ef673

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_ctypes/callproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ get_error_object(int **pspace)
124124
return NULL;
125125
}
126126
if (error_object_name == NULL) {
127-
error_object_name = PyString_InternFromString("ctypes.error_object");
127+
error_object_name = PyUnicode_InternFromString("ctypes.error_object");
128128
if (error_object_name == NULL)
129129
return NULL;
130130
}

0 commit comments

Comments
 (0)