Skip to content

Commit 2aa22f7

Browse files
wjandreapganssle
andauthored
gh-99032: datetime docs: Encoding is no longer relevant (#93365)
This removes a section of the `strftime` and `strptime` documentation that refers to a bygone era when `strftime` would return an encoded byte string. --------- Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
1 parent 5b404d6 commit 2aa22f7

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
@@ -2510,10 +2510,7 @@ Notes:
25102510
Because the format depends on the current locale, care should be taken when
25112511
making assumptions about the output value. Field orderings will vary (for
25122512
example, "month/day/year" versus "day/month/year"), and the output may
2513-
contain Unicode characters encoded using the locale's default encoding (for
2514-
example, if the current locale is ``ja_JP``, the default encoding could be
2515-
any one of ``eucJP``, ``SJIS``, or ``utf-8``; use :meth:`locale.getlocale`
2516-
to determine the current locale's encoding).
2513+
contain non-ASCII characters.
25172514

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

0 commit comments

Comments
 (0)