From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 29 Oct 2025 16:26:38 +0000 (+0100) Subject: [3.14] gh-140228: Avoid making unnecessary syscalls in linecache for frozen modules... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d0e1c8478cbf3d16f7dd9ef3c947de8c9a46a11;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-140228: Avoid making unnecessary syscalls in linecache for frozen modules (GH-140377) (#140738) gh-140228: Avoid making unnecessary syscalls in linecache for frozen modules (GH-140377) (cherry picked from commit c41f84ff61c52e3ff7ef86b0c66208b29613d23d) Co-authored-by: tconley1428 --- diff --git a/Lib/linecache.py b/Lib/linecache.py index 87d7d6fda657..2b5a31b3e75b 100644 --- a/Lib/linecache.py +++ b/Lib/linecache.py @@ -131,9 +131,12 @@ def updatecache(filename, module_globals=None): if _source_unavailable(filename): return [] - if filename.startswith('