From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 25 Jun 2018 10:42:20 +0000 (-0700) Subject: bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7903) X-Git-Tag: v3.7.1rc1~377 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80f1a908a87e55c318776fb8e6f8c21d8a8664ef;p=python bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7903) (cherry picked from commit 4a6e746079441d18c30e3c4d014f106faaf7792f) Co-authored-by: Andrés Delfino --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 7cab670374..03f9159ceb 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2051,7 +2051,7 @@ expression support in the :mod:`re` module). .. method:: str.upper() Return a copy of the string with all the cased characters [4]_ converted to - uppercase. Note that ``str.upper().isupper()`` might be ``False`` if ``s`` + uppercase. Note that ``s.upper().isupper()`` might be ``False`` if ``s`` contains uncased characters or if the Unicode category of the resulting character(s) is not "Lu" (Letter, uppercase), but e.g. "Lt" (Letter, titlecase).