mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
Issue #28701: _PyUnicode_EqualToASCIIId and _PyUnicode_EqualToASCIIString now
require ASCII right argument and assert this condition in debug build.
This commit is contained in:
parent
ecbca357c9
commit
a83a6a3275
2 changed files with 13 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue