[Python-checkins] cpython (merge 3.5 -> default): Merge typo fixes from 3.5

martin.panter python-checkins at python.org
Sat Oct 31 08:25:22 EDT 2015


https://hg.python.org/cpython/rev/0e8743a6924e
changeset:   98912:0e8743a6924e
parent:      98908:7756e9125cdd
parent:      98911:669fb11a4b5e
user:        Martin Panter <vadmium+py at gmail.com>
date:        Sat Oct 31 12:23:03 2015 +0000
summary:
  Merge typo fixes from 3.5

files:
  Doc/library/ssl.rst         |  2 +-
  Doc/library/tracemalloc.rst |  2 +-
  Doc/whatsnew/3.4.rst        |  2 +-
  Doc/whatsnew/3.5.rst        |  8 ++++----
  Lib/html/entities.py        |  2 +-
  Misc/HISTORY                |  2 +-
  Misc/NEWS                   |  2 +-
  7 files changed, 10 insertions(+), 10 deletions(-)


diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -880,7 +880,7 @@
 
    The :meth:`~SSLSocket.read` and :meth:`~SSLSocket.write` methods are the
    low-level methods that read and write unencrypted, application-level data
-   and and decrypt/encrypt it to encrypted, wire-level data. These methods
+   and decrypt/encrypt it to encrypted, wire-level data. These methods
    require an active SSL connection, i.e. the handshake was completed and
    :meth:`SSLSocket.unwrap` was not called.
 
diff --git a/Doc/library/tracemalloc.rst b/Doc/library/tracemalloc.rst
--- a/Doc/library/tracemalloc.rst
+++ b/Doc/library/tracemalloc.rst
@@ -464,7 +464,7 @@
 
       All inclusive filters are applied at once, a trace is ignored if no
       inclusive filters match it. A trace is ignored if at least one exclusive
-      filter matchs it.
+      filter matches it.
 
 
    .. classmethod:: load(filename)
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -2076,7 +2076,7 @@
 Deprecations in the Python API
 ------------------------------
 
-* As mentioned in :ref:`whatsnew-pep-451`, a number of :mod:`importilb`
+* As mentioned in :ref:`whatsnew-pep-451`, a number of :mod:`importlib`
   methods and functions are deprecated: :meth:`importlib.find_loader` is
   replaced by :func:`importlib.util.find_spec`;
   :meth:`importlib.machinery.PathFinder.find_module` is replaced by
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -860,7 +860,7 @@
 :meth:`~collections.deque.copy`, as well as supports ``+`` and ``*`` operators.
 This allows deques to be recognized as a :class:`~collections.abc.MutableSequence`
 and improves their substitutability for lists.
-(Contributed by Raymond Hettinger :issue:`23704`.)
+(Contributed by Raymond Hettinger in :issue:`23704`.)
 
 Docstrings produced by :func:`~collections.namedtuple` can now be updated::
 
@@ -889,7 +889,7 @@
 A new :class:`~collections.abc.Generator` abstract base class. (Contributed
 by Stefan Behnel in :issue:`24018`.)
 
-New :class:`~collections.abc.Awaitable` :class:`~collections.abc.Coroutine`,
+New :class:`~collections.abc.Awaitable`, :class:`~collections.abc.Coroutine`,
 :class:`~collections.abc.AsyncIterator`, and
 :class:`~collections.abc.AsyncIterable` abstract base classes.
 (Contributed by Yury Selivanov in :issue:`24184`.)
@@ -1727,7 +1727,7 @@
 The new
 :meth:`SSLSocket.selected_alpn_protocol() <ssl.SSLSocket.selected_alpn_protocol>`
 returns the protocol that was selected during the TLS handshake.
-:data:`~ssl.HAS_ALPN` flag indicates whether APLN support is present.
+:data:`~ssl.HAS_ALPN` flag indicates whether ALPN support is present.
 
 
 Other Changes
@@ -1782,7 +1782,7 @@
 ----------
 
 The new :func:`~subprocess.run` function has been added.
-It runs the specified command and and returns a
+It runs the specified command and returns a
 :class:`~subprocess.CompletedProcess` object, which describes a finished
 process.  The new API is more consistent and is the recommended approach
 to invoking subprocesses in Python code that does not need to maintain
diff --git a/Lib/html/entities.py b/Lib/html/entities.py
--- a/Lib/html/entities.py
+++ b/Lib/html/entities.py
@@ -224,7 +224,7 @@
     'spades':   0x2660, # black spade suit, U+2660 ISOpub
     'sub':      0x2282, # subset of, U+2282 ISOtech
     'sube':     0x2286, # subset of or equal to, U+2286 ISOtech
-    'sum':      0x2211, # n-ary sumation, U+2211 ISOamsb
+    'sum':      0x2211, # n-ary summation, U+2211 ISOamsb
     'sup':      0x2283, # superset of, U+2283 ISOtech
     'sup1':     0x00b9, # superscript one = superscript digit one, U+00B9 ISOnum
     'sup2':     0x00b2, # superscript two = superscript digit two = squared, U+00B2 ISOnum
diff --git a/Misc/HISTORY b/Misc/HISTORY
--- a/Misc/HISTORY
+++ b/Misc/HISTORY
@@ -1968,7 +1968,7 @@
   change also applies to bytes.splitlines and bytearray.splitlines.
 
 - Issue #7732: Don't open a directory as a file anymore while importing a
-  module. Ignore the direcotry if its name matchs the module name (e.g.
+  module. Ignore the directory if its name matches the module name (e.g.
   "__init__.py") and raise a ImportError instead.
 
 - Issue #13021: Missing decref on an error path.  Thanks to Suman Saha for
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2857,7 +2857,7 @@
 - Issue #3015: _tkinter.create() now creates tkapp object with wantobject=1 by
   default.
 
-- Issue #10203: sqlite3.Row now truly supports sequence protocol.  In particulr
+- Issue #10203: sqlite3.Row now truly supports sequence protocol.  In particular
   it supports reverse() and negative indices.  Original patch by Claudiu Popa.
 
 - Issue #18807: If copying (no symlinks) specified for a venv, then the python

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list