]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in code comment and documentation
authorMartin Panter <vadmium+py@gmail.com>
Sat, 4 Jun 2016 04:57:19 +0000 (04:57 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sat, 4 Jun 2016 04:57:19 +0000 (04:57 +0000)
Doc/library/asyncio-sync.rst
Doc/library/marshal.rst
Doc/library/urllib.request.rst
Lib/asyncio/locks.py
Misc/NEWS
Python/symtable.c

index 1d299ec60afee1012526903c79e20f64f1c39b88..09093521524a89bf91394d19d4c75fe061645288 100644 (file)
@@ -52,7 +52,7 @@ Lock
    :meth:`acquire` is a coroutine and should be called with ``yield from``.
 
    Locks also support the context management protocol.  ``(yield from lock)``
-   should be used as context manager expression.
+   should be used as the context manager expression.
 
    This class is :ref:`not thread safe <asyncio-multithreading>`.
 
index af43944b2c9235ee9564c9544928e6d586560166..d9fd68ada9794ebe3775849297de48ea76641b7a 100644 (file)
@@ -40,7 +40,7 @@ this module.  The following types are supported: booleans, integers, floating
 point numbers, complex numbers, strings, bytes, bytearrays, tuples, lists, sets,
 frozensets, dictionaries, and code objects, where it should be understood that
 tuples, lists, sets, frozensets and dictionaries are only supported as long as
-the values contained therein are themselves supported.
+the values contained therein are themselves supported.  The
 singletons :const:`None`, :const:`Ellipsis` and :exc:`StopIteration` can also be
 marshalled and unmarshalled.
 For format *version* lower than 3, recursive lists, sets and dictionaries cannot
index ac8da26c830a9522dbc9b13b99ec33ef677ddb23..86f4989c1bd3fe2a135c8d7e8ee34ff0e25df4b2 100644 (file)
@@ -59,7 +59,7 @@ The :mod:`urllib.request` module defines the following functions:
 
    The *cadefault* parameter is ignored.
 
-   This function always returns an object which can work as
+   This function always returns an object which can work as a
    :term:`context manager` and has methods such as
 
    * :meth:`~urllib.response.addinfourl.geturl` --- return the URL of the resource retrieved,
index 1804d7b86458157e9d027b6bee61996811edd39f..842d6210d54c7663cc88698f93ee717ffb40cabb 100644 (file)
@@ -111,7 +111,7 @@ class Lock(_ContextManagerMixin):
     acquire() is a coroutine and should be called with 'yield from'.
 
     Locks also support the context management protocol.  '(yield from lock)'
-    should be used as context manager expression.
+    should be used as the context manager expression.
 
     Usage:
 
index d58485a035e59b6594676bf25f1b7b5c6a308426..2ccf912eca5e5727e65daa110ac67de31c2abe66 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -7778,7 +7778,7 @@ Library
 - Issue #16176: Properly identify Windows 8 via platform.platform()
 
 - Issue #16088: BaseHTTPRequestHandler's send_error method includes a
-  Content-Length header in it's response now. Patch by Antoine Pitrou.
+  Content-Length header in its response now. Patch by Antoine Pitrou.
 
 - Issue #16114: The subprocess module no longer provides a misleading error
   message stating that args[0] did not exist when either the cwd or executable
index 6d1a62b782465d521052d3cf393e2368af4e0283..1591a20f502415f61ea4f47ba18bb11b3579b1f1 100644 (file)
@@ -854,7 +854,7 @@ analyze_child_block(PySTEntryObject *entry, PyObject *bound, PyObject *free,
 
     /* Copy the bound and global dictionaries.
 
-       These dictionary are used by all blocks enclosed by the
+       These dictionaries are used by all blocks enclosed by the
        current block.  The analyze_block() call modifies these
        dictionaries.