Commit 488e2ce2 authored by Max Bachmann's avatar Max Bachmann Committed by Stefan Behnel

Fix signature of "PyUnicode_CompareWithASCIIString" (GH-4344)

"PyUnicode_CompareWithASCIIString()" does not raise exceptions and takes a "const char*" as argument.
parent 41e1d225
...@@ -226,7 +226,7 @@ cdef extern from *: ...@@ -226,7 +226,7 @@ cdef extern from *:
# equal, and greater than, respectively. It is best to pass only ASCII-encoded # 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 # strings, but the function interprets the input string as ISO-8859-1 if it
# contains non-ASCII characters. # 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: # 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