]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46541: Remove unnecessary Py_VISIT (GH-31608)
authorDong-hee Na <donghee.na@python.org>
Mon, 28 Feb 2022 07:06:58 +0000 (16:06 +0900)
committerGitHub <noreply@github.com>
Mon, 28 Feb 2022 07:06:58 +0000 (08:06 +0100)
Modules/_csv.c
Modules/arraymodule.c

index ebc3328d0cf0d313ffef8e48c83d09b7392f03a0..991b623d6d6d3a8709fb70284852ea7ca4ff7f26 100644 (file)
@@ -60,7 +60,6 @@ _csv_traverse(PyObject *module, visitproc visit, void *arg)
     Py_VISIT(module_state->dialect_type);
     Py_VISIT(module_state->reader_type);
     Py_VISIT(module_state->writer_type);
-    Py_VISIT(module_state->str_write);
     return 0;
 }
 
index 2d6da1aaac85a951336b84a628c9970e43233bb0..73104ce8f17874f2fd6255ceda0e478e8885711f 100644 (file)
@@ -3034,11 +3034,6 @@ array_traverse(PyObject *module, visitproc visit, void *arg)
     array_state *state = get_array_state(module);
     Py_VISIT(state->ArrayType);
     Py_VISIT(state->ArrayIterType);
-    Py_VISIT(state->str_read);
-    Py_VISIT(state->str_write);
-    Py_VISIT(state->str__array_reconstructor);
-    Py_VISIT(state->str___dict__);
-    Py_VISIT(state->str_iter);
     return 0;
 }