]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #19728: Fix sys.getfilesystemencoding() documentation
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 2 Dec 2013 11:16:46 +0000 (12:16 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 2 Dec 2013 11:16:46 +0000 (12:16 +0100)
Doc/library/sys.rst

index 8ec119078add56407f18ab37f8fd3ca390a8b85b..18d05277ff9a8effd1602ade64b88af65798de18 100644 (file)
@@ -409,7 +409,7 @@ always available.
    * On Mac OS X, the encoding is ``'utf-8'``.
 
    * On Unix, the encoding is the user's preference according to the result of
-     nl_langinfo(CODESET), or ``'utf-8'`` if ``nl_langinfo(CODESET)`` failed.
+     nl_langinfo(CODESET).
 
    * On Windows NT+, file names are Unicode natively, so no conversion is
      performed. :func:`getfilesystemencoding` still returns ``'mbcs'``, as
@@ -420,8 +420,7 @@ always available.
    * On Windows 9x, the encoding is ``'mbcs'``.
 
    .. versionchanged:: 3.2
-      On Unix, use ``'utf-8'`` instead of ``None`` if ``nl_langinfo(CODESET)``
-      failed. :func:`getfilesystemencoding` result cannot be ``None``.
+      :func:`getfilesystemencoding` result cannot be ``None`` anymore.
 
 
 .. function:: getrefcount(object)