]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Minor spelling fixes
authorMartin Panter <vadmium+py@gmail.com>
Sat, 20 Aug 2016 08:03:06 +0000 (08:03 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sat, 20 Aug 2016 08:03:06 +0000 (08:03 +0000)
Doc/library/asyncio-protocol.rst
Doc/library/email.contentmanager.rst
Doc/library/xml.dom.pulldom.rst
Doc/whatsnew/2.7.rst
Include/pymacconfig.h
Misc/NEWS

index bd6ddb6782f68545048c8c5ee32ba4d43b4ce5fa..a38d1e092f13f8fa6ebf335ada8b93a285558e6b 100644 (file)
@@ -11,7 +11,7 @@ Transports
 
 Transports are classes provided by :mod:`asyncio` in order to abstract
 various kinds of communication channels.  You generally won't instantiate
-a transport yourself; instead, you will call a :class:`AbstractEventLoop` method
+a transport yourself; instead, you will call an :class:`AbstractEventLoop` method
 which will create the transport and try to initiate the underlying
 communication channel, calling you back when it succeeds.
 
index cd63728372087c298b3ce61160226c235160a1ca..c25d0736835e7ca96a06e8b3f11a5203a6d82731 100644 (file)
@@ -347,7 +347,7 @@ Currently the email package provides only one concrete content manager,
 
    .. method:: get_content(msg, errors='replace')
 
-      Return the payload of the part as either a string (for ``text`` parts), a
+      Return the payload of the part as either a string (for ``text`` parts), an
       :class:`~email.message.EmailMessage` object (for ``message/rfc822``
       parts), or a ``bytes`` object (for all other non-multipart types).  Raise
       a :exc:`KeyError` if called on a ``multipart``.  If the part is a
index c3339edd54a2daf39464bd69b0caf6667f93edcc..b50255434de94538ef9b1720855ab5d31b2c8f32 100644 (file)
@@ -74,7 +74,7 @@ and switch to DOM-related processing.
 .. function:: parse(stream_or_string, parser=None, bufsize=None)
 
    Return a :class:`DOMEventStream` from the given input. *stream_or_string* may be
-   either a file name, or a file-like object. *parser*, if given, must be a
+   either a file name, or a file-like object. *parser*, if given, must be an
    :class:`~xml.sax.xmlreader.XMLReader` object. This function will change the
    document handler of the
    parser and activate namespace support; other parser configuration (like
index 86f01970709c736becc9c27af6a198657b99e534..534ed0fc6770b415786d051f0c0a46e1ff18fdec 100644 (file)
@@ -532,7 +532,7 @@ implemented by Vinay Sajip, are:
   calling ``log.getChild('network.listen')`` is equivalent to
   ``getLogger('app.network.listen')``.
 
-* The :class:`~logging.LoggerAdapter` class gained a
+* The :class:`~logging.LoggerAdapter` class gained an
   :meth:`~logging.LoggerAdapter.isEnabledFor` method that takes a
   *level* and returns whether the underlying logger would
   process a message of that level of importance.
index 0c28f5c06d1fed0f27f895fd474c1ff41858f950..9dde11bd58e2171be78ecf4d3423b1b231ac17ec 100644 (file)
@@ -63,7 +63,7 @@
 #    if defined(__LP64__)
      /* MacOSX 10.4 (the first release to support 64-bit code
       * at all) only supports 64-bit in the UNIX layer.
-      * Therefore surpress the toolbox-glue in 64-bit mode.
+      * Therefore suppress the toolbox-glue in 64-bit mode.
       */
 
     /* In 64-bit mode setpgrp always has no arguments, in 32-bit
@@ -91,7 +91,7 @@
      *
      * Specifically: OSX 10.4 has limited supported for '%zd', while
      * 10.5 has full support for '%zd'. A binary built on 10.5 won't
-     * work properly on 10.4 unless we surpress the definition
+     * work properly on 10.4 unless we suppress the definition
      * of PY_FORMAT_SIZE_T
      */
 #undef  PY_FORMAT_SIZE_T
index 3ef2e6105eb8033f85634f07669ad0bdad368999..df0d0ec207cd06e4ad72e02d781a3aef591a812d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -180,7 +180,7 @@ Windows
 Build
 -----
 
-- Issue #27713: Surpress spurious build warnings when updating importlib's
+- Issue #27713: Suppress spurious build warnings when updating importlib's
   bootstrap files.  Patch by Xiang Zhang
 
 - Issue #25825: Correct the references to Modules/python.exp, which is