Skip to content

Commit 088dd76

Browse files
authored
bpo-46541: Remove unnecessary Py_VISIT (GH-31608)
1 parent 345572a commit 088dd76

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

Modules/_csv.c

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ _csv_traverse(PyObject *module, visitproc visit, void *arg)
6060
Py_VISIT(module_state->dialect_type);
6161
Py_VISIT(module_state->reader_type);
6262
Py_VISIT(module_state->writer_type);
63-
Py_VISIT(module_state->str_write);
6463
return 0;
6564
}
6665

Modules/arraymodule.c

-5
Original file line numberDiff line numberDiff line change
@@ -3034,11 +3034,6 @@ array_traverse(PyObject *module, visitproc visit, void *arg)
30343034
array_state *state = get_array_state(module);
30353035
Py_VISIT(state->ArrayType);
30363036
Py_VISIT(state->ArrayIterType);
3037-
Py_VISIT(state->str_read);
3038-
Py_VISIT(state->str_write);
3039-
Py_VISIT(state->str__array_reconstructor);
3040-
Py_VISIT(state->str___dict__);
3041-
Py_VISIT(state->str_iter);
30423037
return 0;
30433038
}
30443039

0 commit comments

Comments
 (0)