Commit 4a6e7460 authored by Andrés Delfino's avatar Andrés Delfino Committed by Tal Einat

bpo-33952: Fix typo in str.upper() documentation (GH-7898)

parent a8ddf85a
...@@ -2051,7 +2051,7 @@ expression support in the :mod:`re` module). ...@@ -2051,7 +2051,7 @@ expression support in the :mod:`re` module).
.. method:: str.upper() .. method:: str.upper()
Return a copy of the string with all the cased characters [4]_ converted to 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 contains uncased characters or if the Unicode category of the resulting
character(s) is not "Lu" (Letter, uppercase), but e.g. "Lt" (Letter, character(s) is not "Lu" (Letter, uppercase), but e.g. "Lt" (Letter,
titlecase). titlecase).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment