diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-04-14 06:35:51 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-04-14 06:35:51 (GMT) |
commit | dfa4e045a363fd1dd31c1d57002fc78c10de85a2 (patch) | |
tree | 3f044e4d37129fb3dd70d1535cad09c2f78d9563 | |
parent | a468db9b0bd8d17575923b91db5fbc4a222d4252 (diff) | |
parent | 4882cacab6bcaf90ac496fc8878987598e7665c1 (diff) | |
download | cpython-dfa4e045a363fd1dd31c1d57002fc78c10de85a2.zip cpython-dfa4e045a363fd1dd31c1d57002fc78c10de85a2.tar.gz cpython-dfa4e045a363fd1dd31c1d57002fc78c10de85a2.tar.bz2 |
Issue #23943: Fix typos. Patch by Piotr Kasprzyk.
-rw-r--r-- | Doc/library/email.contentmanager.rst | 2 | ||||
-rw-r--r-- | Doc/library/threading.rst | 2 | ||||
-rw-r--r-- | Doc/library/wsgiref.rst | 2 | ||||
-rw-r--r-- | Include/object.h | 2 | ||||
-rw-r--r-- | Include/pyport.h | 2 | ||||
-rw-r--r-- | Lib/idlelib/SearchEngine.py | 2 | ||||
-rw-r--r-- | Lib/idlelib/idle_test/mock_tk.py | 2 | ||||
-rw-r--r-- | Lib/test/decimaltestdata/exp.decTest | 2 | ||||
-rw-r--r-- | Lib/test/script_helper.py | 2 | ||||
-rw-r--r-- | Lib/test/test_doctest.py | 4 | ||||
-rw-r--r-- | Lib/test/test_email/__init__.py | 2 | ||||
-rw-r--r-- | Lib/test/test_socket.py | 2 | ||||
-rw-r--r-- | Lib/test/test_threading.py | 2 | ||||
-rw-r--r-- | Lib/tkinter/__init__.py | 2 | ||||
-rw-r--r-- | Misc/HISTORY | 2 | ||||
-rw-r--r-- | Misc/NEWS | 2 | ||||
-rw-r--r-- | Modules/_ctypes/_ctypes.c | 2 | ||||
-rw-r--r-- | Modules/_ctypes/ctypes.h | 2 | ||||
-rw-r--r-- | Modules/_ctypes/libffi/ltmain.sh | 2 |
19 files changed, 20 insertions, 20 deletions
diff --git a/Doc/library/email.contentmanager.rst b/Doc/library/email.contentmanager.rst index 8f33a14..f53d34b 100644 --- a/Doc/library/email.contentmanager.rst +++ b/Doc/library/email.contentmanager.rst @@ -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 diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index e7a3544..5269994 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -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. diff --git a/Doc/library/wsgiref.rst b/Doc/library/wsgiref.rst index 2238140..de74c30 100644 --- a/Doc/library/wsgiref.rst +++ b/Doc/library/wsgiref.rst @@ -759,7 +759,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 diff --git a/Include/object.h b/Include/object.h index e29608a..5716f66 100644 --- a/Include/object.h +++ b/Include/object.h @@ -782,7 +782,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: * diff --git a/Include/pyport.h b/Include/pyport.h index 82ad718..66e00d4 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -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. diff --git a/Lib/idlelib/SearchEngine.py b/Lib/idlelib/SearchEngine.py index 1e0534c..37883bf 100644 --- a/Lib/idlelib/SearchEngine.py +++ b/Lib/idlelib/SearchEngine.py @@ -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 diff --git a/Lib/idlelib/idle_test/mock_tk.py b/Lib/idlelib/idle_test/mock_tk.py index a8030f4..86fe848 100644 --- a/Lib/idlelib/idle_test/mock_tk.py +++ b/Lib/idlelib/idle_test/mock_tk.py @@ -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. """ diff --git a/Lib/test/decimaltestdata/exp.decTest b/Lib/test/decimaltestdata/exp.decTest index 021b478..6a7af23 100644 --- a/Lib/test/decimaltestdata/exp.decTest +++ b/Lib/test/decimaltestdata/exp.decTest @@ -19,7 +19,7 @@ ------------------------------------------------------------------------
version: 2.59
--- Tests of the exponential funtion. Currently all testcases here
+-- Tests of the exponential function. Currently all testcases here
-- show results which are correctly rounded (within <= 0.5 ulp).
extended: 1
diff --git a/Lib/test/script_helper.py b/Lib/test/script_helper.py index 7ac19bf..07d167d 100644 --- a/Lib/test/script_helper.py +++ b/Lib/test/script_helper.py @@ -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 diff --git a/Lib/test/test_doctest.py b/Lib/test/test_doctest.py index 665272f..bbe5a13 100644 --- a/Lib/test/test_doctest.py +++ b/Lib/test/test_doctest.py @@ -2174,7 +2174,7 @@ def test_DocTestSuite(): ... AttributeError: module 'test.test_doctest' 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): @@ -2320,7 +2320,7 @@ def test_DocFileSuite(): ... AttributeError: module 'test.test_doctest' 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: diff --git a/Lib/test/test_email/__init__.py b/Lib/test/test_email/__init__.py index a59775c..d2f7d31 100644 --- a/Lib/test/test_email/__init__.py +++ b/Lib/test/test_email/__init__.py @@ -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. diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 72eac0d..8f49407 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -709,7 +709,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)) diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 98f01ee..4b75ea6 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -629,7 +629,7 @@ class ThreadTests(BaseTestCase): def generator(): while 1: - yield "genereator" + yield "generator" def callback(): if callback.gen is None: diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index 109e399..c57ebd2 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -1736,7 +1736,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: diff --git a/Misc/HISTORY b/Misc/HISTORY index 2b4760d..0462f4e 100644 --- a/Misc/HISTORY +++ b/Misc/HISTORY @@ -25449,7 +25449,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 @@ -1105,7 +1105,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 #22508: The email.__version__ variable has been removed; the email code is no longer shipped separately from the stdlib, and __version__ diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 70fb08c..b9fd82e 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -3863,7 +3863,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, diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h index de6c764..0d3f724 100644 --- a/Modules/_ctypes/ctypes.h +++ b/Modules/_ctypes/ctypes.h @@ -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 */ diff --git a/Modules/_ctypes/libffi/ltmain.sh b/Modules/_ctypes/libffi/ltmain.sh index a50a21a..0595980 100644 --- a/Modules/_ctypes/libffi/ltmain.sh +++ b/Modules/_ctypes/libffi/ltmain.sh @@ -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 |