Skip to content

Commit ca89a7e

Browse files
authored
Update outdated linecache.getline() example (#163085)
1 parent a4c6718 commit ca89a7e

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
@@ -69,5 +69,5 @@ The :mod:`!linecache` module defines the following functions:
6969
Example::
7070

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

0 commit comments

Comments
 (0)