From 488e2ce23ff04a6ca9a54d04acbeadb368630121 Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Tue, 31 Aug 2021 19:02:17 +0200 Subject: Fix signature of "PyUnicode_CompareWithASCIIString" (GH-4344) "PyUnicode_CompareWithASCIIString()" does not raise exceptions and takes a "const char*" as argument. --- Cython/Includes/cpython/unicode.pxd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Includes/cpython/unicode.pxd b/Cython/Includes/cpython/unicode.pxd index 061be0905..ad01ed64d 100644 --- a/Cython/Includes/cpython/unicode.pxd +++ b/Cython/Includes/cpython/unicode.pxd @@ -226,7 +226,7 @@ cdef extern from *: # equal, and greater than, respectively. It is best to pass only ASCII-encoded # strings, but the function interprets the input string as ISO-8859-1 if it # contains non-ASCII characters. - int PyUnicode_CompareWithASCIIString(object uni, char *string) except? -1 + int PyUnicode_CompareWithASCIIString(object uni, const char *string) # Rich compare two unicode strings and return one of the following: # -- cgit v1.2.1