summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-03-02 06:28:44 (GMT)
committerGitHub <noreply@github.com>2020-03-02 06:28:44 (GMT)
commit1f577ce363121d590b51abf5c41d1bcf3d751436 (patch)
treec57af903fec028f0a554c1ef0067315b3427202c
parent114081f8adafa16283df30c456716a1bef4758d0 (diff)
downloadcpython-1f577ce363121d590b51abf5c41d1bcf3d751436.zip
cpython-1f577ce363121d590b51abf5c41d1bcf3d751436.tar.gz
cpython-1f577ce363121d590b51abf5c41d1bcf3d751436.tar.bz2
bpo-39378: partial of PickleState struct should be traversed. (GH-18046)
-rw-r--r--Modules/_pickle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index a750351..bcbd3c0 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -7965,6 +7965,7 @@ pickle_traverse(PyObject *m, visitproc visit, void *arg)
Py_VISIT(st->import_mapping_3to2);
Py_VISIT(st->codecs_encode);
Py_VISIT(st->getattr);
+ Py_VISIT(st->partial);
return 0;
}