From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 25 Jun 2018 10:44:16 +0000 (-0700) Subject: bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7904) X-Git-Tag: v3.6.7rc1~245 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac5a6e35ef4a73846136804fff924760ec67ebbd;p=thirdparty%2FPython%2Fcpython.git bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7904) (cherry picked from commit 4a6e746079441d18c30e3c4d014f106faaf7792f) Co-authored-by: Andrés Delfino --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 239fd5717af0..19c7f4127cff 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2042,7 +2042,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).