Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfa4e04

Browse files
committed
Issue #23943: Fix typos. Patch by Piotr Kasprzyk.
2 parents a468db9 + 4882cac commit dfa4e04

19 files changed

Lines changed: 20 additions & 20 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
@@ -759,7 +759,7 @@ This is a working "Hello World" WSGI application::
759759
# object that accepts two arguments. For that purpose, we're going to
760760
# use a function (note that you're not limited to a function, you can
761761
# use a class for example). The first argument passed to the function
762-
# is a dictionary containing CGI-style envrironment variables and the
762+
# is a dictionary containing CGI-style environment variables and the
763763
# second variable is the callable object (see PEP 333).
764764
def hello_world_app(environ, start_response):
765765
status = '200 OK' # HTTP Status

Include/object.h

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

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

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
@@ -2174,7 +2174,7 @@ def test_DocTestSuite():
21742174
...
21752175
AttributeError: module 'test.test_doctest' has no attribute 'sillySetup'
21762176
2177-
The setUp and tearDown funtions are passed test objects. Here
2177+
The setUp and tearDown functions are passed test objects. Here
21782178
we'll use the setUp function to supply the missing variable y:
21792179
21802180
>>> def setUp(test):
@@ -2320,7 +2320,7 @@ def test_DocFileSuite():
23202320
...
23212321
AttributeError: module 'test.test_doctest' has no attribute 'sillySetup'
23222322
2323-
The setUp and tearDown funtions are passed test objects.
2323+
The setUp and tearDown functions are passed test objects.
23242324
Here, we'll use a setUp function to set the favorite color in
23252325
test_doctest.txt:
23262326

0 commit comments

Comments
 (0)