]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #23943: Fix typos. Patch by Piotr Kasprzyk.
authorBerker Peksag <berker.peksag@gmail.com>
Tue, 14 Apr 2015 06:30:01 +0000 (09:30 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Tue, 14 Apr 2015 06:30:01 +0000 (09:30 +0300)
19 files changed:
Doc/library/email.contentmanager.rst
Doc/library/threading.rst
Doc/library/wsgiref.rst
Include/object.h
Include/pyport.h
Lib/idlelib/SearchEngine.py
Lib/idlelib/idle_test/mock_tk.py
Lib/test/decimaltestdata/exp.decTest
Lib/test/script_helper.py
Lib/test/test_doctest.py
Lib/test/test_email/__init__.py
Lib/test/test_socket.py
Lib/test/test_threading.py
Lib/tkinter/__init__.py
Misc/HISTORY
Misc/NEWS
Modules/_ctypes/_ctypes.c
Modules/_ctypes/ctypes.h
Modules/_ctypes/libffi/ltmain.sh

index 8f33a146dd874c6ea3d9a28126628a38a7a6d93b..f53d34b34cbac5cd3ae7c7236994cbbe20f786fa 100644 (file)
@@ -425,7 +425,7 @@ Currently the email package provides only one concrete content manager,
        *cid* as its value.
 
        If *params* is specified, iterate its ``items`` method and use the
-       resulting ``(key, value)`` pairs to set additional paramters on the
+       resulting ``(key, value)`` pairs to set additional parameters on the
        :mailheader:`Content-Type` header.
 
        If *headers* is specified and is a list of strings of the form
index f59ffe582f906c7f87a3db1ea0837b5f8f93d060..0133a8f5e71f5840c67094516e4ce166212edd80 100644 (file)
@@ -874,7 +874,7 @@ This class provides a simple synchronization primitive for use by a fixed number
 of threads that need to wait for each other.  Each of the threads tries to pass
 the barrier by calling the :meth:`~Barrier.wait` method and will block until
 all of the threads have made the call.  At this points, the threads are released
-simultanously.
+simultaneously.
 
 The barrier can be reused any number of times for the same number of threads.
 
index 1cef2e9464e2c3914ca27e643404786e2f327973..a9e19dad982131f3f2fc6918d6ea4012dfbc750a 100644 (file)
@@ -754,7 +754,7 @@ This is a working "Hello World" WSGI application::
    # object that accepts two arguments. For that purpose, we're going to
    # use a function (note that you're not limited to a function, you can
    # use a class for example). The first argument passed to the function
-   # is a dictionary containing CGI-style envrironment variables and the
+   # is a dictionary containing CGI-style environment variables and the
    # second variable is the callable object (see PEP 333).
    def hello_world_app(environ, start_response):
        status = '200 OK' # HTTP Status
index 93062889a75c28679d90dc9362339acbb29aedce..5f862ab6e9fbab51558d55a9d35929451e76e9c5 100644 (file)
@@ -779,7 +779,7 @@ PyAPI_FUNC(void) _Py_Dealloc(PyObject *);
     } while (0)
 
 /* Safely decref `op` and set `op` to NULL, especially useful in tp_clear
- * and tp_dealloc implementatons.
+ * and tp_dealloc implementations.
  *
  * Note that "the obvious" code can be deadly:
  *
index c706213c87c58996cf6883e8f3243dc5a3ed2db0..b29f9bd929119a3317ba5d5b37f877e0e72b03db 100644 (file)
@@ -270,7 +270,7 @@ typedef int Py_ssize_clean_t;
  * for platforms that support that.
  *
  * If PY_LOCAL_AGGRESSIVE is defined before python.h is included, more
- * "aggressive" inlining/optimizaion is enabled for the entire module.  This
+ * "aggressive" inlining/optimization is enabled for the entire module.  This
  * may lead to code bloat, and may slow things down for those reasons.  It may
  * also lead to errors, if the code relies on pointer aliasing.  Use with
  * care.
index 1e0534c085df62e8ce32d67092b3b81580701691..37883bf687c71f0937a53ff54471b354cb6d7920 100644 (file)
@@ -107,7 +107,7 @@ class SearchEngine:
         It directly return the result of that call.
 
         Text is a text widget. Prog is a precompiled pattern.
-        The ok parameteris a bit complicated as it has two effects.
+        The ok parameter is a bit complicated as it has two effects.
 
         If there is a selection, the search begin at either end,
         depending on the direction setting and ok, with ok meaning that
index a8030f4f5ca4d6949961b46e82e956bf5bd44485..86fe84884fbafeb4806e1f6914fd055195863f84 100644 (file)
@@ -1,6 +1,6 @@
 """Classes that replace tkinter gui objects used by an object being tested.
 
-A gui object is anything with a master or parent paramenter, which is
+A gui object is anything with a master or parent parameter, which is
 typically required in spite of what the doc strings say.
 """
 
index 021b478ac2e20e99b88889b85c239447f06d850d..6a7af23b6255308fe320da03c53c841dbe978a83 100644 (file)
@@ -19,7 +19,7 @@
 ------------------------------------------------------------------------\r
 version: 2.59\r
 \r
--- Tests of the exponential funtion.  Currently all testcases here\r
+-- Tests of the exponential function.  Currently all testcases here\r
 -- show results which are correctly rounded (within <= 0.5 ulp).\r
 \r
 extended:    1\r
index b31fc40013e0959805a4614e93a5a3ce96cfa464..b29392ff0a6578f271fe5c277ccb050b1b3040b1 100644 (file)
@@ -34,7 +34,7 @@ def _interpreter_requires_environment():
     doesn't have an obvious home with Python's current home finding logic.
 
     Setting PYTHONHOME is one way to get most of the testsuite to run in that
-    situation.  PYTHONPATH or PYTHONUSERSITE are other common envirnonment
+    situation.  PYTHONPATH or PYTHONUSERSITE are other common environment
     variables that might impact whether or not the interpreter can start.
     """
     global __cached_interp_requires_environment
index 74d512d322101fc468a321e907856269f9f01362..9292d9227845eac6457bd850a418c0c16fe0bdd3 100644 (file)
@@ -2170,7 +2170,7 @@ def test_DocTestSuite():
          ...
          AttributeError: 'module' object has no attribute 'sillySetup'
 
-       The setUp and tearDown funtions are passed test objects. Here
+       The setUp and tearDown functions are passed test objects. Here
        we'll use the setUp function to supply the missing variable y:
 
          >>> def setUp(test):
@@ -2316,7 +2316,7 @@ def test_DocFileSuite():
          ...
          AttributeError: 'module' object has no attribute 'sillySetup'
 
-       The setUp and tearDown funtions are passed test objects.
+       The setUp and tearDown functions are passed test objects.
        Here, we'll use a setUp function to set the favorite color in
        test_doctest.txt:
 
index a59775c4ff59d85425d8c5f0489aaf945f50b793..d2f7d319342991241afad9d4b9d50c9f94bf6c9e 100644 (file)
@@ -87,7 +87,7 @@ def parameterize(cls):
     element tuples.  However derived, the resulting sequence is passed via
     *args to the parameterized test function.
 
-    In a _params dictioanry, the keys become part of the name of the generated
+    In a _params dictionary, the keys become part of the name of the generated
     tests.  In a _params list, the values in the list are converted into a
     string by joining the string values of the elements of the tuple by '_' and
     converting any blanks into '_'s, and this become part of the name.
index 0db760f64e58970e53b72a556cbdd8f10dfa0ed4..c8a36236759ad84e774be8d108e9f3ce4bcb76f3 100644 (file)
@@ -707,7 +707,7 @@ class GeneralModuleTests(unittest.TestCase):
             raise socket.gaierror
 
     def testSendtoErrors(self):
-        # Testing that sendto doens't masks failures. See #10169.
+        # Testing that sendto doesn't masks failures. See #10169.
         s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
         self.addCleanup(s.close)
         s.bind(('', 0))
index 98f01ee42acf3652426d8e0405620c9e9a592e42..4b75ea677823d67683e399552d1dc83c22c045bf 100644 (file)
@@ -629,7 +629,7 @@ class ThreadTests(BaseTestCase):
 
         def generator():
             while 1:
-                yield "genereator"
+                yield "generator"
 
         def callback():
             if callback.gen is None:
index 234306431b7c44f1448bc0754d44076f3399c42e..21a560b5bfd19d6f637f236400040630fec98eac 100644 (file)
@@ -1734,7 +1734,7 @@ class Wm:
 
         On X, the images are arranged into the _NET_WM_ICON X property,
         which most modern window managers support. An icon specified by
-        wm_iconbitmap may exist simuultaneously.
+        wm_iconbitmap may exist simultaneously.
 
         On Macintosh, this currently does nothing."""
         if default:
index 8370d8e4c9a056f78b1b02a16623acdf81d55406..f48375931ab20709f56924e0acad24b60a5e5d43 100644 (file)
@@ -21512,7 +21512,7 @@ Thu Feb 18 20:51:50 1999  Fred Drake  <fdrake@eric.cnri.reston.va.us>
        Bow to font-lock at the end of the docstring, since it throws stuff
        off.
 
-       Make sure the path paramter to readmodule() is a list before adding it
+       Make sure the path parameter to readmodule() is a list before adding it
        with sys.path, or the addition could fail.
 
 
@@ -23564,7 +23564,7 @@ an underscore and used to initialize the pointer.
 - The warning about a thread still having a frame now only happens in
 verbose mode.
 
-- Change the signal finialization so that it also resets the signal
+- Change the signal finalization so that it also resets the signal
 handlers.  After this has been called, our signal handlers are no
 longer active!
 
@@ -25416,7 +25416,7 @@ some more documentation.
 fixed.
 
 - The test of negative number to the float power has been moved from the 
-built-in pow() functin to floatobject.c (so complex numbers can yield the 
+built-in pow() function to floatobject.c (so complex numbers can yield the
 correct result).
 
 - The bug introduced in beta2 where shared libraries loaded (using 
index 6ed85efc4844a4421bc8e612ccbe1ea13c4395ad..a38f395ad000a524e3e749236b8d7bdcc186b6c3 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -465,7 +465,7 @@ Library
   (including empty directories) in ZIP file.
 
 - Issue #22449: In the ssl.SSLContext.load_default_certs, consult the
-  enviromental variables SSL_CERT_DIR and SSL_CERT_FILE on Windows.
+  environmental variables SSL_CERT_DIR and SSL_CERT_FILE on Windows.
 
 - Issue #20076: Added non derived UTF-8 aliases to locale aliases table.
 
index 558abe398630fbd2603ca819b260fe8f0e6645f6..2e5939c2571a5c828c2ca658757d19dc3907f6ed 100644 (file)
@@ -3862,7 +3862,7 @@ PyCFuncPtr_call(PyCFuncPtrObject *self, PyObject *inargs, PyObject *kwds)
                                                    self,
                                                    callargs,
                                                    NULL);
-        /* If the errcheck funtion failed, return NULL.
+        /* If the errcheck function failed, return NULL.
            If the errcheck function returned callargs unchanged,
            continue normal processing.
            If the errcheck function returned something else,
index de6c764911774efa170f6870aa877e696285299f..0d3f7241ca8f3e1c175cb2c46129740482df48ab 100644 (file)
@@ -191,7 +191,7 @@ typedef struct {
    remember is that in PyCArrayType_new the ffi_type fields must be filled in -
    so far it was unneeded because libffi doesn't support arrays at all
    (because they are passed as pointers to function calls anyway).  But it's
-   too much risk to change that now, and there are other fields which doen't
+   too much risk to change that now, and there are other fields which doesn't
    belong into this structure anyway.  Maybe in ctypes 2.0... (ctypes 2000?)
 */
     Py_ssize_t size;            /* number of bytes */
index a50a21a67ca5469243ff2b3d34e748ec8c8fa91c..059598045ef59efac6cbf7c889bea2612fa8629e 100644 (file)
@@ -1438,7 +1438,7 @@ func_run_hooks ()
 
     case " $hookable_fns " in
       *" $1 "*) ;;
-      *) func_fatal_error "'$1' does not support hook funcions.n" ;;
+      *) func_fatal_error "'$1' does not support hook functions." ;;
     esac
 
     eval _G_hook_fns=\$$1_hooks; shift