Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 22d0418

Browse files
committed
Issue #19728: Fix sys.getfilesystemencoding() documentation
1 parent 9d1dbca commit 22d0418

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Doc/library/sys.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ always available.
409409
* On Mac OS X, the encoding is ``'utf-8'``.
410410

411411
* On Unix, the encoding is the user's preference according to the result of
412-
nl_langinfo(CODESET), or ``'utf-8'`` if ``nl_langinfo(CODESET)`` failed.
412+
nl_langinfo(CODESET).
413413

414414
* On Windows NT+, file names are Unicode natively, so no conversion is
415415
performed. :func:`getfilesystemencoding` still returns ``'mbcs'``, as
@@ -420,8 +420,7 @@ always available.
420420
* On Windows 9x, the encoding is ``'mbcs'``.
421421

422422
.. versionchanged:: 3.2
423-
On Unix, use ``'utf-8'`` instead of ``None`` if ``nl_langinfo(CODESET)``
424-
failed. :func:`getfilesystemencoding` result cannot be ``None``.
423+
:func:`getfilesystemencoding` result cannot be ``None`` anymore.
425424

426425

427426
.. function:: getrefcount(object)

0 commit comments

Comments
 (0)