@@ -212,22 +212,21 @@ static inline unsigned int PyUnicode_IS_READY(PyObject* Py_UNUSED(op)) {
212212#define PyUnicode_IS_READY (op ) PyUnicode_IS_READY(_PyObject_CAST(op))
213213
214214/* Return true if the string contains only ASCII characters, or 0 if not. The
215- string may be compact (PyUnicode_IS_COMPACT_ASCII) or not, but must be
216- ready. */
215+ string may be compact (PyUnicode_IS_COMPACT_ASCII) or not. */
217216static inline unsigned int PyUnicode_IS_ASCII (PyObject * op ) {
218217 return _PyASCIIObject_CAST (op )-> state .ascii ;
219218}
220219#define PyUnicode_IS_ASCII (op ) PyUnicode_IS_ASCII(_PyObject_CAST(op))
221220
222221/* Return true if the string is compact or 0 if not.
223- No type checks or Ready calls are performed. */
222+ No type checks are performed. */
224223static inline unsigned int PyUnicode_IS_COMPACT (PyObject * op ) {
225224 return _PyASCIIObject_CAST (op )-> state .compact ;
226225}
227226#define PyUnicode_IS_COMPACT (op ) PyUnicode_IS_COMPACT(_PyObject_CAST(op))
228227
229228/* Return true if the string is a compact ASCII string (use PyASCIIObject
230- structure), or 0 if not. No type checks or Ready calls are performed. */
229+ structure), or 0 if not. No type checks are performed. */
231230static inline int PyUnicode_IS_COMPACT_ASCII (PyObject * op ) {
232231 return (_PyASCIIObject_CAST (op )-> state .ascii && PyUnicode_IS_COMPACT (op ));
233232}
@@ -319,7 +318,7 @@ static inline void PyUnicode_WRITE(int kind, void *data,
319318 (index), _Py_STATIC_CAST(Py_UCS4, value))
320319
321320/* Read a code point from the string's canonical representation. No checks
322- or ready calls are performed. */
321+ are performed. */
323322static inline Py_UCS4 PyUnicode_READ (int kind ,
324323 const void * data , Py_ssize_t index )
325324{
0 commit comments