]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix spelling (inital), grammar (may translates) in documentation, comments
authorMartin Panter <vadmium+py@gmail.com>
Tue, 19 Apr 2016 04:03:41 +0000 (04:03 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Tue, 19 Apr 2016 04:03:41 +0000 (04:03 +0000)
Doc/library/tempfile.rst
Doc/library/test.rst
Doc/whatsnew/2.2.rst
Lib/gzip.py
Lib/optparse.py
Lib/test/test_tracemalloc.py
Misc/HISTORY
Misc/NEWS
Modules/_io/stringio.c
Objects/typeobject.c
Programs/_testembed.c

index b714d0ff92d94c171877aa094fea08c6f196a50b..486c18da4826825f4306ac0779bfd1f32889e2f3 100644 (file)
@@ -256,7 +256,7 @@ to specify the directory and this is the recommend approach.
    module.
 
    If ``tempdir`` is unset or ``None`` at any call to any of the above
-   functions except :func:`gettempprefix` it is initalized following the
+   functions except :func:`gettempprefix` it is initialized following the
    algorithm described in :func:`gettempdir`.
 
 .. _tempfile-examples:
index db2da1b67fc6b456e82c8ca2a269d5a6dab4f403..a5ce2ca8800d99e8d630432f9bdfc8087b46243b 100644 (file)
@@ -550,7 +550,7 @@ The :mod:`test.support` module defines the following functions:
    or passed to an external program (i.e. the ``-accept`` argument to
    openssl's s_server mode).  Always prefer :func:`bind_port` over
    :func:`find_unused_port` where possible.  Using a hard coded port is
-   discouraged since it can makes multiple instances of the test impossible to
+   discouraged since it can make multiple instances of the test impossible to
    run simultaneously, which is a problem for buildbots.
 
 
index 75e176c29a69679072bf3e30021e45f8ab5553b8..38751ea63c4d2a07fa5cf78e2253d1d331c55b44 100644 (file)
@@ -758,7 +758,7 @@ Here are the changes 2.2 introduces:
   operators.
 
 * Python 2.2 supports some command-line arguments for testing whether code will
-  works with the changed division semantics.  Running python with :option:`-Q
+  work with the changed division semantics.  Running python with :option:`-Q
   warn` will cause a warning to be issued whenever division is applied to two
   integers.  You can use this to find code that's affected by the change and fix
   it.  By default, Python 2.2 will simply perform classic division without a
index 3a2b322732a6bcd6e29684e83b69947e40b1ee9d..da4479e9d0d015114f8e02b080092deda47953cf 100644 (file)
@@ -133,7 +133,7 @@ class GzipFile(_compression.BaseStream):
         a file object.
 
         When fileobj is not None, the filename argument is only used to be
-        included in the gzip file header, which may includes the original
+        included in the gzip file header, which may include the original
         filename of the uncompressed file.  It defaults to the filename of
         fileobj, if discernible; otherwise, it defaults to the empty string,
         and in this case the original filename is not included in the header.
index 5bc905166bec49a4fddbeccff3e711cddebbbd49..74b3b36995353f27d417f606da2a1bf02ee17c91 100644 (file)
@@ -900,7 +900,7 @@ class OptionContainer:
       _short_opt : { string : Option }
         dictionary mapping short option strings, eg. "-f" or "-X",
         to the Option instances that implement them.  If an Option
-        has multiple short option strings, it will appears in this
+        has multiple short option strings, it will appear in this
         dictionary multiple times. [1]
       _long_opt : { string : Option }
         dictionary mapping long option strings, eg. "--file" or
index f65e36118c2202533311f82d1a1f03804d78f486..da89a9a87159358097642b389cdf202559844faa 100644 (file)
@@ -253,7 +253,7 @@ class TestTracemallocEnabled(unittest.TestCase):
         snapshot.dump(support.TESTFN)
         self.addCleanup(support.unlink, support.TESTFN)
 
-        # load() should recreates the attribute
+        # load() should recreate the attribute
         snapshot2 = tracemalloc.Snapshot.load(support.TESTFN)
         self.assertEqual(snapshot2.test_attr, "new")
 
index 7857f6f896c508a55ff0579fb48df2fa892e3a85..603b17abd9d37ae08b9fe999346380b01036d54e 100644 (file)
@@ -23743,7 +23743,7 @@ the first class with an applicable hook wins.  Makes more sense.
 - Changed the checks made in Py_Initialize() and Py_Finalize().  It is
 now legal to call these more than once.  The first call to
 Py_Initialize() initializes, the first call to Py_Finalize()
-finalizes.  There's also a new API, Py_IsInitalized() which checks
+finalizes.  There's also a new API, Py_IsInitialized() which checks
 whether we are already initialized (in case you want to leave things
 as they were).
 
index 0cb29ad257b5877cc4c49e61d218088feba89ae2..16fe26c69dd06f98244d9bf87f145de4800c767e 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -5238,8 +5238,8 @@ Library
 - Issue #19448: Add private API to SSL module to lookup ASN.1 objects by OID,
   NID, short name and long name.
 
-- Issue #19282: dbm.open now supports the context management protocol. (Inital
-  patch by Claudiu Popa)
+- Issue #19282: dbm.open now supports the context management protocol.
+  (Initial patch by Claudiu Popa)
 
 - Issue #8311: Added support for writing any bytes-like objects in the aifc,
   sunau, and wave modules.
@@ -5333,7 +5333,7 @@ Library
 - Issue #19227: Remove pthread_atfork() handler. The handler was added to
   solve #18747 but has caused issues.
 
-- Issue #19420: Fix reference leak in module initalization code of
+- Issue #19420: Fix reference leak in module initialization code of
   _hashopenssl.c
 
 - Issue #19329: Optimized compiling charsets in regular expressions.
index 73018a539071b032ea3a8beda966776228532d2e..06b414457833f651b299d250bcf822502d3f5d43 100644 (file)
@@ -913,8 +913,8 @@ stringio_setstate(stringio *self, PyObject *state)
     Py_DECREF(initarg);
 
     /* Restore the buffer state. Even if __init__ did initialize the buffer,
-       we have to initialize it again since __init__ may translates the
-       newlines in the inital_value string. We clearly do not want that
+       we have to initialize it again since __init__ may translate the
+       newlines in the initial_value string. We clearly do not want that
        because the string value in the state tuple has already been translated
        once by __init__. So we do not take any chance and replace object's
        buffer completely. */
index 3a09af571562d7a7ec6f3e305737f9bd54f33580..0a82f3adea7f53c1617a3827aa7dc0879a752296 100644 (file)
@@ -3901,7 +3901,7 @@ _PyObject_GetState(PyObject *obj, int required)
                     }
                 }
 
-                /* The list is stored on the class so it may mutates while we
+                /* The list is stored on the class so it may mutate while we
                    iterate over it */
                 if (slotnames_size != Py_SIZE(slotnames)) {
                     PyErr_Format(PyExc_RuntimeError,
@@ -4035,7 +4035,7 @@ _PyObject_GetNewArguments(PyObject *obj, PyObject **args, PyObject **kwargs)
     }
 
     /* The object does not have __getnewargs_ex__ and __getnewargs__. This may
-       means __new__ does not takes any arguments on this object, or that the
+       mean __new__ does not takes any arguments on this object, or that the
        object does not implement the reduce protocol for pickling or
        copying. */
     *args = NULL;
index 39ff0977c8fdbf7ae39c97d24b82ed08324301f8..ab6a8c75073ca99039872e7b9fa9382d96d5ef00 100644 (file)
@@ -17,7 +17,7 @@ static void _testembed_Py_Initialize(void)
 
 
 /*****************************************************
- * Test repeated initalisation and subinterpreters
+ * Test repeated initialisation and subinterpreters
  *****************************************************/
 
 static void print_subinterp(void)