From: Tal Einat Date: Mon, 25 Jun 2018 10:47:23 +0000 (+0300) Subject: [2.7] bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7905) X-Git-Tag: v2.7.16rc1~228 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78209734a0ecd1567f819d95314b1c7c9b26f48a;p=thirdparty%2FPython%2Fcpython.git [2.7] bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7905) (cherry picked from commit 4a6e746079441d18c30e3c4d014f106faaf7792f) Co-authored-by: Andrés Delfino --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index e16bd77188fa..ff68738abcda 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1381,7 +1381,7 @@ string functions based on regular expressions. .. 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).