Skip to content

Commit e2eacc0

Browse files
committed
Issue python#23943: Fix typos. Patch by Piotr Kasprzyk.
1 parent 801110b commit e2eacc0

15 files changed

Lines changed: 19 additions & 19 deletions

File tree

Doc/library/wsgiref.rst

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

Include/object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ PyAPI_FUNC(void) _Py_AddToAllObjects(PyObject *, int force);
778778
} while (0)
779779

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

Include/pyport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ typedef Py_intptr_t Py_ssize_t;
265265
* for platforms that support that.
266266
*
267267
* If PY_LOCAL_AGGRESSIVE is defined before python.h is included, more
268-
* "aggressive" inlining/optimizaion is enabled for the entire module. This
268+
* "aggressive" inlining/optimization is enabled for the entire module. This
269269
* may lead to code bloat, and may slow things down for those reasons. It may
270270
* also lead to errors, if the code relies on pointer aliasing. Use with
271271
* 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/test_doctest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,7 +2113,7 @@ def test_DocTestSuite():
21132113
...
21142114
AttributeError: 'module' object has no attribute 'sillySetup'
21152115
2116-
The setUp and tearDown funtions are passed test objects. Here
2116+
The setUp and tearDown functions are passed test objects. Here
21172117
we'll use the setUp function to supply the missing variable y:
21182118
21192119
>>> def setUp(test):
@@ -2259,7 +2259,7 @@ def test_DocFileSuite():
22592259
...
22602260
AttributeError: 'module' object has no attribute 'sillySetup'
22612261
2262-
The setUp and tearDown funtions are passed test objects.
2262+
The setUp and tearDown functions are passed test objects.
22632263
Here, we'll use a setUp function to set the favorite color in
22642264
test_doctest.txt:
22652265

Lib/test/test_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def raise_gaierror(*args, **kwargs):
299299
"Error raising socket exception.")
300300

301301
def testSendtoErrors(self):
302-
# Testing that sendto doens't masks failures. See #10169.
302+
# Testing that sendto doesn't masks failures. See #10169.
303303
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
304304
self.addCleanup(s.close)
305305
s.bind(('', 0))

Lib/test/test_threading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ def noop_trace(frame, event, arg):
739739

740740
def generator():
741741
while 1:
742-
yield "genereator"
742+
yield "generator"
743743

744744
def callback():
745745
if callback.gen is None:

Misc/HISTORY

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10633,7 +10633,7 @@ Thu Feb 18 20:51:50 1999 Fred Drake <fdrake@eric.cnri.reston.va.us>
1063310633
Bow to font-lock at the end of the docstring, since it throws stuff
1063410634
off.
1063510635

10636-
Make sure the path paramter to readmodule() is a list before adding it
10636+
Make sure the path parameter to readmodule() is a list before adding it
1063710637
with sys.path, or the addition could fail.
1063810638

1063910639

@@ -12685,7 +12685,7 @@ an underscore and used to initialize the pointer.
1268512685
- The warning about a thread still having a frame now only happens in
1268612686
verbose mode.
1268712687

12688-
- Change the signal finialization so that it also resets the signal
12688+
- Change the signal finalization so that it also resets the signal
1268912689
handlers. After this has been called, our signal handlers are no
1269012690
longer active!
1269112691

@@ -14537,7 +14537,7 @@ some more documentation.
1453714537
fixed.
1453814538

1453914539
- The test of negative number to the float power has been moved from the
14540-
built-in pow() functin to floatobject.c (so complex numbers can yield the
14540+
built-in pow() function to floatobject.c (so complex numbers can yield the
1454114541
correct result).
1454214542

1454314543
- The bug introduced in beta2 where shared libraries loaded (using

0 commit comments

Comments
 (0)