summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Andrea <william.j.andrea@gmail.com>2023-04-24 18:54:16 (GMT)
committerGitHub <noreply@github.com>2023-04-24 18:54:16 (GMT)
commit2aa22f72fbbabb4ca2a641c0546d25c45128c56f (patch)
tree1db5b679f7a75c446852d5ddcb41f8155024195a
parent5b404d6cad2bf53295fdf96305f95efe1ea0174e (diff)
downloadcpython-2aa22f72fbbabb4ca2a641c0546d25c45128c56f.zip
cpython-2aa22f72fbbabb4ca2a641c0546d25c45128c56f.tar.gz
cpython-2aa22f72fbbabb4ca2a641c0546d25c45128c56f.tar.bz2
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>
-rw-r--r--Doc/library/datetime.rst5
1 files changed, 1 insertions, 4 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index ab8fed6..7889dd7 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -2510,10 +2510,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