Skip to content

Commit 3266ede

Browse files
authored
Docs: add cross-references to improve navigation in getpass.rst (#151092)
1 parent b2e2cd3 commit 3266ede

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/getpass.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The :mod:`!getpass` module provides two functions:
1818
the string *prompt*, which defaults to ``'Password: '``. On Unix, the
1919
prompt is written to the file-like object *stream* using the replace error
2020
handler if needed. *stream* defaults to the controlling terminal
21-
(:file:`/dev/tty`) or if that is unavailable to ``sys.stderr`` (this
21+
(:file:`/dev/tty`) or if that is unavailable to :data:`sys.stderr` (this
2222
argument is ignored on Windows).
2323

2424
The *echo_char* argument controls how user input is displayed while typing.
@@ -27,12 +27,12 @@ The :mod:`!getpass` module provides two functions:
2727
typed character is replaced by it. For example, ``echo_char='*'`` will
2828
display asterisks instead of the actual input.
2929

30-
If echo free input is unavailable getpass() falls back to printing
31-
a warning message to *stream* and reading from ``sys.stdin`` and
30+
If echo-free input is unavailable, :func:`getpass` falls back to printing
31+
a warning message to *stream* and reading from :data:`sys.stdin` and
3232
issuing a :exc:`GetPassWarning`.
3333

3434
.. note::
35-
If you call getpass from within IDLE, the input may be done in the
35+
If you call :func:`getpass` from within IDLE, the input may be done in the
3636
terminal you launched IDLE from rather than the idle window itself.
3737

3838
.. note::

0 commit comments

Comments
 (0)