Skip to content

Commit 4882cac

Browse files
committed
Issue python#23943: Fix typos. Patch by Piotr Kasprzyk.
1 parent 52a3b74 commit 4882cac

19 files changed

Lines changed: 22 additions & 22 deletions

File tree

‎Doc/library/email.contentmanager.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ Currently the email package provides only one concrete content manager,
425425
*cid* as its value.
426426

427427
If *params* is specified, iterate its ``items`` method and use the
428-
resulting ``(key, value)`` pairs to set additional paramters on the
428+
resulting ``(key, value)`` pairs to set additional parameters on the
429429
:mailheader:`Content-Type` header.
430430

431431
If *headers* is specified and is a list of strings of the form

‎Doc/library/threading.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ This class provides a simple synchronization primitive for use by a fixed number
874874
of threads that need to wait for each other. Each of the threads tries to pass
875875
the barrier by calling the :meth:`~Barrier.wait` method and will block until
876876
all of the threads have made the call. At this points, the threads are released
877-
simultanously.
877+
simultaneously.
878878

879879
The barrier can be reused any number of times for the same number of threads.
880880

‎Doc/library/wsgiref.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ This is a working "Hello World" WSGI application::
754754
# object that accepts two arguments. For that purpose, we're going to
755755
# use a function (note that you're not limited to a function, you can
756756
# use a class for example). The first argument passed to the function
757-
# is a dictionary containing CGI-style envrironment variables and the
757+
# is a dictionary containing CGI-style environment variables and the
758758
# second variable is the callable object (see PEP 333).
759759
def hello_world_app(environ, start_response):
760760
status = '200 OK' # HTTP Status

‎Include/object.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ PyAPI_FUNC(void) _Py_Dealloc(PyObject *);
779779
} while (0)
780780

781781
/* Safely decref `op` and set `op` to NULL, especially useful in tp_clear
782-
* and tp_dealloc implementatons.
782+
* and tp_dealloc implementations.
783783
*
784784
* Note that "the obvious" code can be deadly:
785785
*

‎Include/pyport.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ typedef int Py_ssize_clean_t;
270270
* for platforms that support that.
271271
*
272272
* If PY_LOCAL_AGGRESSIVE is defined before python.h is included, more
273-
* "aggressive" inlining/optimizaion is enabled for the entire module. This
273+
* "aggressive" inlining/optimization is enabled for the entire module. This
274274
* may lead to code bloat, and may slow things down for those reasons. It may
275275
* also lead to errors, if the code relies on pointer aliasing. Use with
276276
* care.

‎Lib/idlelib/SearchEngine.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def search_text(self, text, prog=None, ok=0):
107107
It directly return the result of that call.
108108
109109
Text is a text widget. Prog is a precompiled pattern.
110-
The ok parameteris a bit complicated as it has two effects.
110+
The ok parameter is a bit complicated as it has two effects.
111111
112112
If there is a selection, the search begin at either end,
113113
depending on the direction setting and ok, with ok meaning that

‎Lib/idlelib/idle_test/mock_tk.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Classes that replace tkinter gui objects used by an object being tested.
22
3-
A gui object is anything with a master or parent paramenter, which is
3+
A gui object is anything with a master or parent parameter, which is
44
typically required in spite of what the doc strings say.
55
"""
66

‎Lib/test/decimaltestdata/exp.decTest‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
------------------------------------------------------------------------
2020
version: 2.59
2121

22-
-- Tests of the exponential funtion. Currently all testcases here
22+
-- Tests of the exponential function. Currently all testcases here
2323
-- show results which are correctly rounded (within <= 0.5 ulp).
2424

2525
extended: 1

‎Lib/test/script_helper.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def _interpreter_requires_environment():
3434
doesn't have an obvious home with Python's current home finding logic.
3535
3636
Setting PYTHONHOME is one way to get most of the testsuite to run in that
37-
situation. PYTHONPATH or PYTHONUSERSITE are other common envirnonment
37+
situation. PYTHONPATH or PYTHONUSERSITE are other common environment
3838
variables that might impact whether or not the interpreter can start.
3939
"""
4040
global __cached_interp_requires_environment

‎Lib/test/test_doctest.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,7 +2170,7 @@ def test_DocTestSuite():
21702170
...
21712171
AttributeError: 'module' object has no attribute 'sillySetup'
21722172
2173-
The setUp and tearDown funtions are passed test objects. Here
2173+
The setUp and tearDown functions are passed test objects. Here
21742174
we'll use the setUp function to supply the missing variable y:
21752175
21762176
>>> def setUp(test):
@@ -2316,7 +2316,7 @@ def test_DocFileSuite():
23162316
...
23172317
AttributeError: 'module' object has no attribute 'sillySetup'
23182318
2319-
The setUp and tearDown funtions are passed test objects.
2319+
The setUp and tearDown functions are passed test objects.
23202320
Here, we'll use a setUp function to set the favorite color in
23212321
test_doctest.txt:
23222322

0 commit comments

Comments
 (0)