Skip to content

Commit 9fbb614

Browse files
miss-islingtonwjandreapganssleambv
authored
[3.11] gh-99032: datetime docs: Encoding is no longer relevant (GH-93365) (#103788)
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 2aa22f7) 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>
1 parent fee3c91 commit 9fbb614

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Doc/library/datetime.rst

+1-4
Original file line numberDiff line numberDiff line change
@@ -2502,10 +2502,7 @@ Notes:
25022502
Because the format depends on the current locale, care should be taken when
25032503
making assumptions about the output value. Field orderings will vary (for
25042504
example, "month/day/year" versus "day/month/year"), and the output may
2505-
contain Unicode characters encoded using the locale's default encoding (for
2506-
example, if the current locale is ``ja_JP``, the default encoding could be
2507-
any one of ``eucJP``, ``SJIS``, or ``utf-8``; use :meth:`locale.getlocale`
2508-
to determine the current locale's encoding).
2505+
contain non-ASCII characters.
25092506

25102507
(2)
25112508
The :meth:`strptime` method can parse years in the full [1, 9999] range, but

0 commit comments

Comments
 (0)