Skip to content

Commit a894c4c

Browse files
committed
fixup: PyUnicodeObject methods
1 parent 47bc0ee commit a894c4c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Objects/unicodeobject.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14340,14 +14340,14 @@ static PyNumberMethods unicode_as_number = {
1434014340
};
1434114341

1434214342
static PySequenceMethods unicode_as_sequence = {
14343-
(lenfunc) unicode_length, /* sq_length */
14344-
PyUnicode_Concat, /* sq_concat */
14345-
(ssizeargfunc) unicode_repeat, /* sq_repeat */
14346-
(ssizeargfunc) unicode_getitem, /* sq_item */
14343+
unicode_length, /* sq_length */
14344+
PyUnicode_Concat, /* sq_concat */
14345+
unicode_repeat, /* sq_repeat */
14346+
unicode_getitem, /* sq_item */
1434714347
0, /* sq_slice */
1434814348
0, /* sq_ass_item */
1434914349
0, /* sq_ass_slice */
14350-
PyUnicode_Contains, /* sq_contains */
14350+
PyUnicode_Contains, /* sq_contains */
1435114351
};
1435214352

1435314353
static PyObject*
@@ -14421,9 +14421,9 @@ unicode_subscript(PyObject* self, PyObject* item)
1442114421
}
1442214422

1442314423
static PyMappingMethods unicode_as_mapping = {
14424-
(lenfunc)unicode_length, /* mp_length */
14425-
(binaryfunc)unicode_subscript, /* mp_subscript */
14426-
(objobjargproc)0, /* mp_ass_subscript */
14424+
unicode_length, /* mp_length */
14425+
unicode_subscript, /* mp_subscript */
14426+
0, /* mp_ass_subscript */
1442714427
};
1442814428

1442914429

@@ -15566,7 +15566,7 @@ PyTypeObject PyUnicode_Type = {
1556615566
sizeof(PyUnicodeObject), /* tp_basicsize */
1556715567
0, /* tp_itemsize */
1556815568
/* Slots */
15569-
(destructor)unicode_dealloc, /* tp_dealloc */
15569+
unicode_dealloc, /* tp_dealloc */
1557015570
0, /* tp_vectorcall_offset */
1557115571
0, /* tp_getattr */
1557215572
0, /* tp_setattr */
@@ -15575,9 +15575,9 @@ PyTypeObject PyUnicode_Type = {
1557515575
&unicode_as_number, /* tp_as_number */
1557615576
&unicode_as_sequence, /* tp_as_sequence */
1557715577
&unicode_as_mapping, /* tp_as_mapping */
15578-
(hashfunc) unicode_hash, /* tp_hash*/
15578+
unicode_hash, /* tp_hash*/
1557915579
0, /* tp_call*/
15580-
(reprfunc) unicode_str, /* tp_str */
15580+
unicode_str, /* tp_str */
1558115581
PyObject_GenericGetAttr, /* tp_getattro */
1558215582
0, /* tp_setattro */
1558315583
0, /* tp_as_buffer */

0 commit comments

Comments
 (0)