[Python-checkins] bpo-44045: fix spelling of uppercase vs upper-case (GH-25985)

nanjekyejoannah webhook-mailer at python.org
Fri May 28 16:54:32 EDT 2021


https://github.com/python/cpython/commit/2138b2edaf5acb3b9c162a9ba620923e286239a8
commit: 2138b2edaf5acb3b9c162a9ba620923e286239a8
branch: main
author: Jürgen Gmach <juergen.gmach at googlemail.com>
committer: nanjekyejoannah <33177550+nanjekyejoannah at users.noreply.github.com>
date: 2021-05-28T17:54:25-03:00
summary:

bpo-44045: fix spelling of uppercase vs upper-case (GH-25985)

And also of lowercase vs lower-case.

The `-` notation should only be used for adjectives.

files:
M Doc/library/builtins.rst
M Doc/library/msilib.rst
M Doc/library/poplib.rst
M Lib/imaplib.py
M Lib/ssl.py

diff --git a/Doc/library/builtins.rst b/Doc/library/builtins.rst
index 8fb1fef6da2954..7e4f8fe0531567 100644
--- a/Doc/library/builtins.rst
+++ b/Doc/library/builtins.rst
@@ -25,7 +25,7 @@ that wants to implement an :func:`open` function that wraps the built-in
        return UpperCaser(f)
 
    class UpperCaser:
-       '''Wrapper around a file that converts output to upper-case.'''
+       '''Wrapper around a file that converts output to uppercase.'''
 
        def __init__(self, f):
            self._f = f
diff --git a/Doc/library/msilib.rst b/Doc/library/msilib.rst
index 83b3d4973bf0d9..21a2a205c39391 100644
--- a/Doc/library/msilib.rst
+++ b/Doc/library/msilib.rst
@@ -119,7 +119,7 @@ structures.
 .. function:: gen_uuid()
 
    Return a new UUID, in the format that MSI typically requires (i.e. in curly
-   braces, and with all hexdigits in upper-case).
+   braces, and with all hexdigits in uppercase).
 
 
 .. seealso::
diff --git a/Doc/library/poplib.rst b/Doc/library/poplib.rst
index 9bf9212d917a55..27202a168e7c17 100644
--- a/Doc/library/poplib.rst
+++ b/Doc/library/poplib.rst
@@ -118,7 +118,7 @@ One exception is defined as an attribute of the :mod:`poplib` module:
 POP3 Objects
 ------------
 
-All POP3 commands are represented by methods of the same name, in lower-case;
+All POP3 commands are represented by methods of the same name, in lowercase;
 most return the response text sent by the server.
 
 An :class:`POP3` instance has the following methods:
diff --git a/Lib/imaplib.py b/Lib/imaplib.py
index 73184396d894a3..fa4c0f8f62361a 100644
--- a/Lib/imaplib.py
+++ b/Lib/imaplib.py
@@ -145,7 +145,7 @@ class IMAP4:
                       the global default socket timeout is used
 
     All IMAP4rev1 commands are supported by methods of the same
-    name (in lower-case).
+    name (in lowercase).
 
     All arguments to commands are converted to strings, except for
     AUTHENTICATE, and the last argument to APPEND which is passed as
diff --git a/Lib/ssl.py b/Lib/ssl.py
index 2b131de04306ac..aeb2958da24be0 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -280,7 +280,7 @@ class _TLSMessageType:
 def _dnsname_match(dn, hostname):
     """Matching according to RFC 6125, section 6.4.3
 
-    - Hostnames are compared lower case.
+    - Hostnames are compared lower-case.
     - For IDNA, both dn and hostname must be encoded as IDN A-label (ACE).
     - Partial wildcards like 'www*.example.org', multiple wildcards, sole
       wildcard or wildcards in labels other then the left-most label are not



More information about the Python-checkins mailing list