From: Andrés Delfino Date: Mon, 25 Jun 2018 10:34:22 +0000 (-0300) Subject: bpo-33952: Fix typo in str.upper() documentation (GH-7898) X-Git-Tag: v3.8.0a1~1496 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a6e746079441d18c30e3c4d014f106faaf7792f;p=thirdparty%2FPython%2Fcpython.git bpo-33952: Fix typo in str.upper() documentation (GH-7898) --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index ba886f1da2bd..1211ece6ad64 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).