Skip to content

Commit 288a764

Browse files
fixup! Revert type name changes
1 parent 223e143 commit 288a764

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Modules/_pickle.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ typedef struct {
196196
/* Types */
197197
PyTypeObject *Pickler_Type;
198198
PyTypeObject *Unpickler_Type;
199-
PyTypeObject *Pdata_type;
199+
PyTypeObject *Pdata_Type;
200200
PyTypeObject *PicklerMemoProxyType;
201201
PyTypeObject *UnpicklerMemoProxyType;
202202
} PickleState;
@@ -249,7 +249,7 @@ _Pickle_ClearState(PickleState *st)
249249
Py_CLEAR(st->partial);
250250
Py_CLEAR(st->Pickler_Type);
251251
Py_CLEAR(st->Unpickler_Type);
252-
Py_CLEAR(st->Pdata_type);
252+
Py_CLEAR(st->Pdata_Type);
253253
Py_CLEAR(st->PicklerMemoProxyType);
254254
Py_CLEAR(st->UnpicklerMemoProxyType);
255255
}
@@ -502,7 +502,7 @@ Pdata_New(PickleState *state)
502502
{
503503
Pdata *self;
504504

505-
if (!(self = PyObject_GC_New(Pdata, state->Pdata_type)))
505+
if (!(self = PyObject_GC_New(Pdata, state->Pdata_Type)))
506506
return NULL;
507507
Py_SET_SIZE(self, 0);
508508
self->mark_set = 0;
@@ -7840,7 +7840,7 @@ pickle_traverse(PyObject *m, visitproc visit, void *arg)
78407840
Py_VISIT(st->partial);
78417841
Py_VISIT(st->Pickler_Type);
78427842
Py_VISIT(st->Unpickler_Type);
7843-
Py_VISIT(st->Pdata_type);
7843+
Py_VISIT(st->Pdata_Type);
78447844
Py_VISIT(st->PicklerMemoProxyType);
78457845
Py_VISIT(st->UnpicklerMemoProxyType);
78467846
return 0;
@@ -7851,9 +7851,9 @@ _pickle_exec(PyObject *m)
78517851
{
78527852
PickleState *st = _Pickle_GetState(m);
78537853

7854-
st->Pdata_type = (PyTypeObject *)PyType_FromMetaclass(NULL, m, &pdata_spec,
7854+
st->Pdata_Type = (PyTypeObject *)PyType_FromMetaclass(NULL, m, &pdata_spec,
78557855
NULL);
7856-
if (st->Pdata_type == NULL) {
7856+
if (st->Pdata_Type == NULL) {
78577857
return -1;
78587858
}
78597859

0 commit comments

Comments
 (0)