Skip to content

Commit 993c82d

Browse files
[3.14] Update outdated linecache.getline() example (GH-163085) (#163088)
Update outdated `linecache.getline()` example (GH-163085) (cherry picked from commit ca89a7e) Co-authored-by: Ali <105012194+aliysnm@users.noreply.github.com>
1 parent a343368 commit 993c82d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Doc/library/linecache.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ The :mod:`!linecache` module defines the following functions:
7171
Example::
7272

7373
>>> import linecache
74-
>>> linecache.getline(linecache.__file__, 8)
75-
'import sys\n'
74+
>>> linecache.getline(linecache.__file__, 1)
75+
'"""Cache lines from Python source files.\n'

0 commit comments

Comments
 (0)