diff options
author | Dong-hee Na <donghee.na@python.org> | 2022-02-28 07:06:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-28 07:06:58 (GMT) |
commit | 088dd76dba68c2538776d9920607f81e54544cbd (patch) | |
tree | 5cdb2bb46b8f56687e941affacdff72814f4a410 | |
parent | 345572a1a0263076081020524016eae867677cac (diff) | |
download | cpython-088dd76dba68c2538776d9920607f81e54544cbd.zip cpython-088dd76dba68c2538776d9920607f81e54544cbd.tar.gz cpython-088dd76dba68c2538776d9920607f81e54544cbd.tar.bz2 |
bpo-46541: Remove unnecessary Py_VISIT (GH-31608)
-rw-r--r-- | Modules/_csv.c | 1 | ||||
-rw-r--r-- | Modules/arraymodule.c | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c index ebc3328..991b623 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c @@ -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; } diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 2d6da1a..73104ce 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -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; } |