summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2021-09-21 23:33:59 (GMT)
committerGitHub <noreply@github.com>2021-09-21 23:33:59 (GMT)
commit8c1e1da565bca9cec792323eb728e288715ef7c4 (patch)
tree4b78b148f1e5573f68ca0150838a2d80d48cde7f /Include
parentc800e390941e91a9a276191d2f41b7e0e6e23e9e (diff)
downloadcpython-8c1e1da565bca9cec792323eb728e288715ef7c4.zip
cpython-8c1e1da565bca9cec792323eb728e288715ef7c4.tar.gz
cpython-8c1e1da565bca9cec792323eb728e288715ef7c4.tar.bz2
[3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511)
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> (cherry picked from commit 8f943ca25732d548cf9f0b0393ba8d582fb93e29) Co-authored-by: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com>
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/unicodeobject.h2
-rw-r--r--Include/internal/pycore_object.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h
index 30bf994..0b5067f 100644
--- a/Include/cpython/unicodeobject.h
+++ b/Include/cpython/unicodeobject.h
@@ -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)
diff --git a/Include/internal/pycore_object.h b/Include/internal/pycore_object.h
index 1d50bdf..90d9813 100644
--- a/Include/internal/pycore_object.h
+++ b/Include/internal/pycore_object.h
@@ -170,7 +170,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,