]> granicus.if.org Git - python/commitdiff
PyString_InternFromString -> PyUnicode_InternFromString
authorThomas Heller <theller@ctypes.org>
Tue, 10 Jun 2008 15:30:51 +0000 (15:30 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 10 Jun 2008 15:30:51 +0000 (15:30 +0000)
Modules/_ctypes/callproc.c

index 47cc56775981b52eec5fe4dc2f8b89f6f9861b3d..53677c066a103a5244b39d882036e537a7faae42 100644 (file)
@@ -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;
        }