bpo-39759: Fix after review

This commit is contained in:
Andrey Doroschenko 2020-02-26 15:39:46 +03:00
parent d4064b688f
commit 6a1faeeaeb
1 changed files with 1 additions and 2 deletions

View File

@ -217,8 +217,7 @@ process and user.
.. function:: getenv(key, default=None) .. function:: getenv(key, default=None)
Return the value of the environment variable *key* if it exists, or Return the value of the environment variable *key* if it exists, or
*default* if it doesn't. Only *key* needs to be a string as it is used to *default* if it doesn't. *key* must be a string.
lookup the value in os.environ.
On Unix, keys and values are decoded with :func:`sys.getfilesystemencoding` On Unix, keys and values are decoded with :func:`sys.getfilesystemencoding`
and ``'surrogateescape'`` error handler. Use :func:`os.getenvb` if you and ``'surrogateescape'`` error handler. Use :func:`os.getenvb` if you