summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Bachmann <kontakt@maxbachmann.de>2021-08-31 19:02:17 +0200
committerStefan Behnel <stefan_ml@behnel.de>2021-09-07 11:49:13 +0200
commit488e2ce23ff04a6ca9a54d04acbeadb368630121 (patch)
tree625cb64cb2635a2e847fab762d562ba089337eb9
parent41e1d225d8f58e575a4a4d3eede4d0d1f516fe93 (diff)
downloadcython-488e2ce23ff04a6ca9a54d04acbeadb368630121.tar.gz
Fix signature of "PyUnicode_CompareWithASCIIString" (GH-4344)
"PyUnicode_CompareWithASCIIString()" does not raise exceptions and takes a "const char*" as argument.
-rw-r--r--Cython/Includes/cpython/unicode.pxd2
1 files changed, 1 insertions, 1 deletions
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:
#