diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-16 18:03:03 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-16 18:03:03 (GMT) |
commit | 27b74244fbc42f4f50024f14b4b89e6219dedd98 (patch) | |
tree | ebeaa2c81f0be0d7d8258c26d72e77f217602cf6 /Include | |
parent | dfe2387e7947c65661f152849ea760674a826672 (diff) | |
parent | a83a6a3275f7dc748db3a237bbf4b05fcf76a85f (diff) | |
download | cpython-27b74244fbc42f4f50024f14b4b89e6219dedd98.zip cpython-27b74244fbc42f4f50024f14b4b89e6219dedd98.tar.gz cpython-27b74244fbc42f4f50024f14b4b89e6219dedd98.tar.bz2 |
Issue #28701: _PyUnicode_EqualToASCIIId and _PyUnicode_EqualToASCIIString now
require ASCII right argument and assert this condition in debug build.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/unicodeobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 67c4422..2b65d19 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -2038,7 +2038,7 @@ PyAPI_FUNC(int) PyUnicode_Compare( #ifndef Py_LIMITED_API /* Test whether a unicode is equal to ASCII identifier. Return 1 if true, - 0 otherwise. Return 0 if any argument contains non-ASCII characters. + 0 otherwise. The right argument must be ASCII identifier. Any error occurs inside will be cleared before return. */ PyAPI_FUNC(int) _PyUnicode_EqualToASCIIId( @@ -2060,7 +2060,7 @@ PyAPI_FUNC(int) PyUnicode_CompareWithASCIIString( #ifndef Py_LIMITED_API /* Test whether a unicode is equal to ASCII string. Return 1 if true, - 0 otherwise. Return 0 if any argument contains non-ASCII characters. + 0 otherwise. The right argument must be ASCII-encoded string. Any error occurs inside will be cleared before return. */ PyAPI_FUNC(int) _PyUnicode_EqualToASCIIString( |