Commit 26e544c7 authored by Max Bachmann's avatar Max Bachmann Committed by GitHub

Fix signature of "PyUnicode_CompareWithASCIIString" (GH-4344)

"PyUnicode_CompareWithASCIIString()" does not raise exceptions and takes a "const char*" as argument.
parent 1894e0f7
......@@ -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:
#
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment