Skip to content

Commit 2138b2e

Browse files
authored
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.
1 parent acac6c7 commit 2138b2e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Doc/library/builtins.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ that wants to implement an :func:`open` function that wraps the built-in
2525
return UpperCaser(f)
2626

2727
class UpperCaser:
28-
'''Wrapper around a file that converts output to upper-case.'''
28+
'''Wrapper around a file that converts output to uppercase.'''
2929

3030
def __init__(self, f):
3131
self._f = f

Doc/library/msilib.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ structures.
119119
.. function:: gen_uuid()
120120

121121
Return a new UUID, in the format that MSI typically requires (i.e. in curly
122-
braces, and with all hexdigits in upper-case).
122+
braces, and with all hexdigits in uppercase).
123123

124124

125125
.. seealso::

Doc/library/poplib.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ One exception is defined as an attribute of the :mod:`poplib` module:
118118
POP3 Objects
119119
------------
120120

121-
All POP3 commands are represented by methods of the same name, in lower-case;
121+
All POP3 commands are represented by methods of the same name, in lowercase;
122122
most return the response text sent by the server.
123123

124124
An :class:`POP3` instance has the following methods:

Lib/imaplib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class IMAP4:
145145
the global default socket timeout is used
146146
147147
All IMAP4rev1 commands are supported by methods of the same
148-
name (in lower-case).
148+
name (in lowercase).
149149
150150
All arguments to commands are converted to strings, except for
151151
AUTHENTICATE, and the last argument to APPEND which is passed as

Lib/ssl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ class _TLSMessageType:
280280
def _dnsname_match(dn, hostname):
281281
"""Matching according to RFC 6125, section 6.4.3
282282
283-
- Hostnames are compared lower case.
283+
- Hostnames are compared lower-case.
284284
- For IDNA, both dn and hostname must be encoded as IDN A-label (ACE).
285285
- Partial wildcards like 'www*.example.org', multiple wildcards, sole
286286
wildcard or wildcards in labels other then the left-most label are not

0 commit comments

Comments
 (0)