mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
[codemod] Fix non-matching bracket pairs (GH-28473)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
a007347100
commit
8f943ca257
29 changed files with 35 additions and 33 deletions
|
@ -416,7 +416,7 @@ enum PyUnicode_Kind {
|
|||
|
||||
|
||||
/* Fast check to determine whether an object is ready. Equivalent to
|
||||
PyUnicode_IS_COMPACT(op) || ((PyUnicodeObject*)(op))->data.any) */
|
||||
PyUnicode_IS_COMPACT(op) || ((PyUnicodeObject*)(op))->data.any */
|
||||
|
||||
#define PyUnicode_IS_READY(op) (((PyASCIIObject*)op)->state.ready)
|
||||
|
||||
|
|
|
@ -168,7 +168,7 @@ _PyObject_IS_GC(PyObject *obj)
|
|||
// Fast inlined version of PyType_IS_GC()
|
||||
#define _PyType_IS_GC(t) _PyType_HasFeature((t), Py_TPFLAGS_HAVE_GC)
|
||||
|
||||
// Usage: assert(_Py_CheckSlotResult(obj, "__getitem__", result != NULL)));
|
||||
// Usage: assert(_Py_CheckSlotResult(obj, "__getitem__", result != NULL));
|
||||
extern int _Py_CheckSlotResult(
|
||||
PyObject *obj,
|
||||
const char *slot_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue