]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117865: Defer import of re in ast (#119546)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Tue, 28 May 2024 18:04:08 +0000 (11:04 -0700)
committerGitHub <noreply@github.com>
Tue, 28 May 2024 18:04:08 +0000 (11:04 -0700)
commitae11d68ab90324a3359699ca13fcf9a229966713
treed06028ec0c6b7a7a1f1f04da1a30a4904bac1c52
parenta89fc26f4ac90156a1b108135f92dcf7698190f2
gh-117865: Defer import of re in ast (#119546)

This is used only by ast.get_source_segment(), so it seems sensible to avoid importing it.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Lib/ast.py
Misc/NEWS.d/next/Library/2024-05-25-07-25-07.gh-issue-117865.1A0Xpi.rst [new file with mode: 0644]