[Python-checkins] bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7904)
Tal Einat
webhook-mailer at python.org
Mon Jun 25 06:44:19 EDT 2018
https://github.com/python/cpython/commit/ac5a6e35ef4a73846136804fff924760ec67ebbd
commit: ac5a6e35ef4a73846136804fff924760ec67ebbd
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Tal Einat <taleinat+github at gmail.com>
date: 2018-06-25T13:44:16+03:00
summary:
bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7904)
(cherry picked from commit 4a6e746079441d18c30e3c4d014f106faaf7792f)
Co-authored-by: Andrés Delfino <adelfino at gmail.com>
files:
M Doc/library/stdtypes.rst
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).
More information about the Python-checkins
mailing list