From 78209734a0ecd1567f819d95314b1c7c9b26f48a Mon Sep 17 00:00:00 2001 From: Tal Einat Date: Mon, 25 Jun 2018 13:47:23 +0300 Subject: [2.7] bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7905) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 4a6e746079441d18c30e3c4d014f106faaf7792f) Co-authored-by: Andrés Delfino --- Doc/library/stdtypes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index e16bd77..ff68738 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). -- cgit v0.12