]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in documentation and comments
authorMartin Panter <vadmium+py@gmail.com>
Tue, 5 Apr 2016 06:19:42 +0000 (06:19 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Tue, 5 Apr 2016 06:19:42 +0000 (06:19 +0000)
Doc/library/dis.rst
Include/unicodeobject.h
Lib/http/client.py
Lib/test/test_argparse.py
Lib/warnings.py
Misc/NEWS
README

index 1bcb3a4a07f4be674fcbca7b0f919aee7828e30c..68c196ec864559b8de996c38054bb68b575b3a88 100644 (file)
@@ -708,7 +708,7 @@ the more significant byte last.
 
    Implements assignment with a starred target: Unpacks an iterable in TOS into
    individual values, where the total number of values can be smaller than the
-   number of items in the iterable: one the new values will be a list of all
+   number of items in the iterable: one of the new values will be a list of all
    leftover items.
 
    The low byte of *counts* is the number of values before the list value, the
index 09c9b21800a3134b6c12b7c30e221988985a7ee0..143abd0c2fbdca0bc62ae777a021b07880565eb1 100644 (file)
@@ -2052,7 +2052,7 @@ PyAPI_FUNC(PyObject *) PyUnicode_Format(
 /* Checks whether element is contained in container and return 1/0
    accordingly.
 
-   element has to coerce to an one element Unicode string. -1 is
+   element has to coerce to a one element Unicode string. -1 is
    returned in case of an error. */
 
 PyAPI_FUNC(int) PyUnicode_Contains(
index 2d6e07bbfc2fe912bb21db13224ea5ad00b38682..350313e87b32e275ac2f296b563f6f75845c6073 100644 (file)
@@ -1155,7 +1155,7 @@ class HTTPConnection:
 
         If the HTTPConnection is in the correct state, returns an
         instance of HTTPResponse or of whatever object is returned by
-        class the response_class variable.
+        the response_class variable.
 
         If a request has not been sent or if a previous response has
         not be handled, ResponseNotReady is raised.  If the HTTP
index f48e85c8faba72da703b85caf0f2b73054a45ca1..f9ee398899feb0eaec495dd7d04edda59bf190ea 100644 (file)
@@ -534,7 +534,7 @@ class TestOptionalsNargsDefault(ParserTestCase):
 
 
 class TestOptionalsNargs1(ParserTestCase):
-    """Tests specifying the 1 arg for an Optional"""
+    """Tests specifying 1 arg for an Optional"""
 
     argument_signatures = [Sig('-x', nargs=1)]
     failures = ['a', '-x']
@@ -545,7 +545,7 @@ class TestOptionalsNargs1(ParserTestCase):
 
 
 class TestOptionalsNargs3(ParserTestCase):
-    """Tests specifying the 3 args for an Optional"""
+    """Tests specifying 3 args for an Optional"""
 
     argument_signatures = [Sig('-x', nargs=3)]
     failures = ['a', '-x', '-x a', '-x a b', 'a -x', 'a -x b']
@@ -579,7 +579,7 @@ class TestOptionalsNargsOptional(ParserTestCase):
 
 
 class TestOptionalsNargsZeroOrMore(ParserTestCase):
-    """Tests specifying an args for an Optional that accepts zero or more"""
+    """Tests specifying args for an Optional that accepts zero or more"""
 
     argument_signatures = [
         Sig('-x', nargs='*'),
@@ -598,7 +598,7 @@ class TestOptionalsNargsZeroOrMore(ParserTestCase):
 
 
 class TestOptionalsNargsOneOrMore(ParserTestCase):
-    """Tests specifying an args for an Optional that accepts one or more"""
+    """Tests specifying args for an Optional that accepts one or more"""
 
     argument_signatures = [
         Sig('-x', nargs='+'),
@@ -1251,7 +1251,7 @@ class TestPrefixCharacterOnlyArguments(ParserTestCase):
 
 
 class TestNargsZeroOrMore(ParserTestCase):
-    """Tests specifying an args for an Optional that accepts zero or more"""
+    """Tests specifying args for an Optional that accepts zero or more"""
 
     argument_signatures = [Sig('-x', nargs='*'), Sig('y', nargs='*')]
     failures = []
index cf9f5b282acdd66884994b377ec397bd91b96dd3..dfa13ee3fc5bfeb6150bf2ae3a90ad4fdf002e6c 100644 (file)
@@ -28,7 +28,7 @@ def formatwarning(message, category, filename, lineno, line=None):
             line = linecache.getline(filename, lineno)
         except Exception:
             # When a warning is logged during Python shutdown, linecache
-            # and the improt machinery don't work anymore
+            # and the import machinery don't work anymore
             line = None
     if line:
         line = line.strip()
index 6d43666b56d94446b621d685a43050712c197fc7..b6958318bd356997ba34bfd7606782daf1942255 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1812,7 +1812,7 @@ Library
 Build
 -----
 
-- Issue #23817: FreeBSD now uses "1.0" the the SOVERSION as other operating
+- Issue #23817: FreeBSD now uses "1.0" in the SOVERSION as other operating
   systems, instead of just "1".
 
 - Issue #23501: Argument Clinic now generates code into separate files by default.
@@ -6826,7 +6826,7 @@ Library
   Thomas Barlow.
 
 - Issue #17358: Modules loaded by imp.load_source() and load_compiled() (and by
-  extention load_module()) now have a better chance of working when reloaded.
+  extension load_module()) now have a better chance of working when reloaded.
 
 - Issue #17804: New function ``struct.iter_unpack`` allows for streaming
   struct unpacking.
@@ -7509,7 +7509,7 @@ Library
 - Issue #16284: Prevent keeping unnecessary references to worker functions
   in concurrent.futures ThreadPoolExecutor.
 
-- Issue #16230: Fix a crash in select.select() when one the lists changes
+- Issue #16230: Fix a crash in select.select() when one of the lists changes
   size while iterated on.  Patch by Serhiy Storchaka.
 
 - Issue #16228: Fix a crash in the json module where a list changes size
diff --git a/README b/README
index 1ba742eae91feb9cb7023576d690c3f90061db40..d58c40987e6d9b7deb0f9d7397ce62eb1e32eadd 100644 (file)
--- a/README
+++ b/README
@@ -71,7 +71,7 @@ profile the interpreter execution. Note also that any output, both stdout
 and stderr, that may appear at this step is supressed.
 
 Finally, the last step is to rebuild the interpreter, using the information
-collected in the previous one. The end result will be a the Python binary
+collected in the previous one. The end result will be a Python binary
 that is optimized and suitable for distribution or production installation.