diff options
author | Max Bachmann <kontakt@maxbachmann.de> | 2021-08-31 19:02:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 19:02:17 +0200 |
commit | 26e544c7b765ceb77edfe923ac9ca29aaa239d12 (patch) | |
tree | b8d03746e4b968b94f31565fbb6eaa95fac8edea | |
parent | 1894e0f7b3e69531edccded47226f169b871dee8 (diff) | |
download | cython-26e544c7b765ceb77edfe923ac9ca29aaa239d12.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.pxd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Includes/cpython/unicode.pxd b/Cython/Includes/cpython/unicode.pxd index 63dde4363..ba11f5736 100644 --- a/Cython/Includes/cpython/unicode.pxd +++ b/Cython/Includes/cpython/unicode.pxd @@ -234,7 +234,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: # |