]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-99032: datetime docs: Encoding is no longer relevant (GH-93365) (#103788)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 29 Apr 2023 03:09:55 +0000 (20:09 -0700)
committerGitHub <noreply@github.com>
Sat, 29 Apr 2023 03:09:55 +0000 (20:09 -0700)
This removes a section of the `strftime` and `strptime` documentation that refers to a bygone era when `strftime` would return an encoded byte string.

---------

(cherry picked from commit 2aa22f72fbbabb4ca2a641c0546d25c45128c56f)

Co-authored-by: William Andrea <william.j.andrea@gmail.com>
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Doc/library/datetime.rst

index df02b68db253f83331ff5552a88c5739eccfa032..9711f944e90dc3fb24ff85f077f4b903fffb7194 100644 (file)
@@ -2502,10 +2502,7 @@ Notes:
    Because the format depends on the current locale, care should be taken when
    making assumptions about the output value. Field orderings will vary (for
    example, "month/day/year" versus "day/month/year"), and the output may
-   contain Unicode characters encoded using the locale's default encoding (for
-   example, if the current locale is ``ja_JP``, the default encoding could be
-   any one of ``eucJP``, ``SJIS``, or ``utf-8``; use :meth:`locale.getlocale`
-   to determine the current locale's encoding).
+   contain non-ASCII characters.
 
 (2)
    The :meth:`strptime` method can parse years in the full [1, 9999] range, but