From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 19 Oct 2023 15:31:29 +0000 (+0200) Subject: [3.11] gh-101100: Fix sphinx warnings in `library/getpass.rst` (GH-110461) (#111072) X-Git-Tag: v3.11.7~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4fc5352a0d52d8077b4c2ad03c963a99b1fbe790;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-101100: Fix sphinx warnings in `library/getpass.rst` (GH-110461) (#111072) Co-authored-by: Nikita Sobolev --- diff --git a/Doc/library/getpass.rst b/Doc/library/getpass.rst index d5bbe67fb30a..5c79daf0f47d 100644 --- a/Doc/library/getpass.rst +++ b/Doc/library/getpass.rst @@ -43,7 +43,7 @@ The :mod:`getpass` module provides two functions: Return the "login name" of the user. This function checks the environment variables :envvar:`LOGNAME`, - :envvar:`USER`, :envvar:`LNAME` and :envvar:`USERNAME`, in order, and + :envvar:`USER`, :envvar:`!LNAME` and :envvar:`USERNAME`, in order, and returns the value of the first one which is set to a non-empty string. If none are set, the login name from the password database is returned on systems which support the :mod:`pwd` module, otherwise, an exception is diff --git a/Doc/tools/.nitignore b/Doc/tools/.nitignore index 0ff65ccb21d3..b47924f25348 100644 --- a/Doc/tools/.nitignore +++ b/Doc/tools/.nitignore @@ -71,7 +71,6 @@ Doc/library/fcntl.rst Doc/library/ftplib.rst Doc/library/functions.rst Doc/library/functools.rst -Doc/library/getpass.rst Doc/library/gettext.rst Doc/library/gzip.rst Doc/library/http.client.rst