From 6212186775ff948a0aa2b5cdb6cbd5c3d70f60e2 Mon Sep 17 00:00:00 2001 From: Ali <105012194+aliysnm@users.noreply.github.com> Date: Thu, 3 Dec 2026 16:29:23 +0300 Subject: [PATCH] Update outdated `linecache.getline()` example (GH-163085) (cherry picked from commit ca89a7eecab3241245d0d6ea5de8ec3d0781e81e) Co-authored-by: Ali <105012194+aliysnm@users.noreply.github.com> --- Doc/library/linecache.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/linecache.rst b/Doc/library/linecache.rst index 0a5373ec976371..fb55f3ffe130f4 100644 --- a/Doc/library/linecache.rst +++ b/Doc/library/linecache.rst @@ -71,5 +71,5 @@ The :mod:`!linecache` module defines the following functions: Example:: >>> import linecache - >>> linecache.getline(linecache.__file__, 8) - 'import sys\n' + >>> linecache.getline(linecache.__file__, 1) + '"""Cache lines from Python source files.\n'