diff options
| author | Hai Shi <shihai1992@gmail.com> | 2020-06-07 12:05:36 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-07 12:05:36 (GMT) |
| commit | 47a23fc63fa5df2da8dbc542e78e521d4a7f10c9 (patch) | |
| tree | 672aa7892961efc225df0d3949ccb036cc7fe9d9 /Modules/_functoolsmodule.c | |
| parent | b8867e5d5aca33511942632b5f4e359b9245b2fa (diff) | |
| download | cpython-47a23fc63fa5df2da8dbc542e78e521d4a7f10c9.zip cpython-47a23fc63fa5df2da8dbc542e78e521d4a7f10c9.tar.gz cpython-47a23fc63fa5df2da8dbc542e78e521d4a7f10c9.tar.bz2 | |
bpo-40898: Remove redundant if statements in tp_traverse (GH-20692)
Diffstat (limited to 'Modules/_functoolsmodule.c')
| -rw-r--r-- | Modules/_functoolsmodule.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c index d158d3b..f1ee23f 100644 --- a/Modules/_functoolsmodule.c +++ b/Modules/_functoolsmodule.c @@ -484,8 +484,7 @@ static int keyobject_traverse(keyobject *ko, visitproc visit, void *arg) { Py_VISIT(ko->cmp); - if (ko->object) - Py_VISIT(ko->object); + Py_VISIT(ko->object); return 0; } |
