bpo-42278: Use tempfile.TemporaryDirectory rather than tempfile.mktemp in pydoc (GH-23200) Co-authored-by: Ćukasz Langa <lukasz@langa.pl>