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

This commit is contained in:
Serhiy Storchaka 2016-12-06 00:17:45 +02:00
commit 9a953dbb34
4 changed files with 23 additions and 5 deletions

View file

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