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

This commit is contained in:
Serhiy Storchaka 2016-12-06 00:13:34 +02:00
parent 7bc01c32b1
commit 419967b832
4 changed files with 20 additions and 5 deletions

View file

@ -2023,7 +2023,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,