Skip to content

Commit dc8cbef

Browse files
committed
address review: actual___init___impl -> s_init
1 parent db8f5f2 commit dc8cbef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Modules/_struct.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,7 @@ prepare_s(PyStructObject *self)
17591759
}
17601760

17611761
static int
1762-
actual___init___impl(PyStructObject *self, PyObject *format)
1762+
s_init(PyStructObject *self, PyObject *format)
17631763
{
17641764
if (PyUnicode_Check(format)) {
17651765
format = PyUnicode_AsASCIIString(format);
@@ -1808,7 +1808,7 @@ s_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
18081808
self->s_len = -1;
18091809
self->init_called = false;
18101810
if (PyTuple_GET_SIZE(args) > 0) {
1811-
if (actual___init___impl(self, PyTuple_GET_ITEM(args, 0))) {
1811+
if (s_init(self, PyTuple_GET_ITEM(args, 0))) {
18121812
Py_DECREF(self);
18131813
return NULL;
18141814
}
@@ -1837,7 +1837,7 @@ Struct___init___impl(PyStructObject *self, PyObject *format)
18371837
return -1;
18381838
}
18391839
if (!self->init_called) {
1840-
if (!self->s_codes && actual___init___impl(self, format)) {
1840+
if (!self->s_codes && s_init(self, format)) {
18411841
return -1;
18421842
}
18431843
self->init_called = true;
@@ -1850,7 +1850,7 @@ Struct___init___impl(PyStructObject *self, PyObject *format)
18501850
{
18511851
return -1;
18521852
}
1853-
return actual___init___impl(self, format);
1853+
return s_init(self, format);
18541854
}
18551855

18561856
static int

0 commit comments

Comments
 (0)