]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-77621: Delay some imports from pathlib (#112244)
authorBarney Gale <barney.gale@gmail.com>
Sat, 25 Nov 2023 17:41:05 +0000 (17:41 +0000)
committerGitHub <noreply@github.com>
Sat, 25 Nov 2023 17:41:05 +0000 (17:41 +0000)
commitbbb4367b55ead1a0322d86b568c6c4607f539d3e
treebd3f0371d562e6772df0a7c5334329a9230ffaf8
parentfbb9027a037ff1bfaf3f596df033ca45743ee980
GH-77621: Delay some imports from pathlib (#112244)

Import `contextlib`, `glob` and `re` only as required.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Lib/pathlib.py
Misc/NEWS.d/next/Library/2023-11-21-02-58-14.gh-issue-77621.MYv5XS.rst [new file with mode: 0644]