mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
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.
This commit is contained in:
parent
acac6c71ff
commit
2138b2edaf
@ -25,7 +25,7 @@ that wants to implement an :func:`open` function that wraps the built-in
|
|||||||
return UpperCaser(f)
|
return UpperCaser(f)
|
||||||
|
|
||||||
class UpperCaser:
|
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):
|
def __init__(self, f):
|
||||||
self._f = f
|
self._f = f
|
||||||
|
@ -119,7 +119,7 @@ structures.
|
|||||||
.. function:: gen_uuid()
|
.. function:: gen_uuid()
|
||||||
|
|
||||||
Return a new UUID, in the format that MSI typically requires (i.e. in curly
|
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::
|
.. seealso::
|
||||||
|
@ -118,7 +118,7 @@ One exception is defined as an attribute of the :mod:`poplib` module:
|
|||||||
POP3 Objects
|
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.
|
most return the response text sent by the server.
|
||||||
|
|
||||||
An :class:`POP3` instance has the following methods:
|
An :class:`POP3` instance has the following methods:
|
||||||
|
@ -145,7 +145,7 @@ class IMAP4:
|
|||||||
the global default socket timeout is used
|
the global default socket timeout is used
|
||||||
|
|
||||||
All IMAP4rev1 commands are supported by methods of the same
|
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
|
All arguments to commands are converted to strings, except for
|
||||||
AUTHENTICATE, and the last argument to APPEND which is passed as
|
AUTHENTICATE, and the last argument to APPEND which is passed as
|
||||||
|
@ -280,7 +280,7 @@ CertificateError = SSLCertVerificationError
|
|||||||
def _dnsname_match(dn, hostname):
|
def _dnsname_match(dn, hostname):
|
||||||
"""Matching according to RFC 6125, section 6.4.3
|
"""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).
|
- For IDNA, both dn and hostname must be encoded as IDN A-label (ACE).
|
||||||
- Partial wildcards like 'www*.example.org', multiple wildcards, sole
|
- Partial wildcards like 'www*.example.org', multiple wildcards, sole
|
||||||
wildcard or wildcards in labels other then the left-most label are not
|
wildcard or wildcards in labels other then the left-most label are not
|
||||||
|
Loading…
Reference in New Issue
Block a user