Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.

This commit is contained in:
Serhiy Storchaka 2016-12-06 00:20:26 +02:00
commit fb3134f4d4
4 changed files with 20 additions and 5 deletions

View file

@ -2055,7 +2055,7 @@ PyAPI_FUNC(int) _PyUnicode_EqualToASCIIId(
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.
Raise an exception and return -1 on error. */
This function does not raise exceptions. */
PyAPI_FUNC(int) PyUnicode_CompareWithASCIIString(
PyObject *left,