Skip to content

Commit cc71a79

Browse files
committed
Fix typos in documentation and comments
1 parent 28f35b2 commit cc71a79

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

Doc/library/dis.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ the more significant byte last.
708708

709709
Implements assignment with a starred target: Unpacks an iterable in TOS into
710710
individual values, where the total number of values can be smaller than the
711-
number of items in the iterable: one the new values will be a list of all
711+
number of items in the iterable: one of the new values will be a list of all
712712
leftover items.
713713

714714
The low byte of *counts* is the number of values before the list value, the

Include/unicodeobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2052,7 +2052,7 @@ PyAPI_FUNC(PyObject *) PyUnicode_Format(
20522052
/* Checks whether element is contained in container and return 1/0
20532053
accordingly.
20542054
2055-
element has to coerce to an one element Unicode string. -1 is
2055+
element has to coerce to a one element Unicode string. -1 is
20562056
returned in case of an error. */
20572057

20582058
PyAPI_FUNC(int) PyUnicode_Contains(

Lib/http/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ def getresponse(self):
11551155
11561156
If the HTTPConnection is in the correct state, returns an
11571157
instance of HTTPResponse or of whatever object is returned by
1158-
class the response_class variable.
1158+
the response_class variable.
11591159
11601160
If a request has not been sent or if a previous response has
11611161
not be handled, ResponseNotReady is raised. If the HTTP

Lib/test/test_argparse.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ class TestOptionalsNargsDefault(ParserTestCase):
534534

535535

536536
class TestOptionalsNargs1(ParserTestCase):
537-
"""Tests specifying the 1 arg for an Optional"""
537+
"""Tests specifying 1 arg for an Optional"""
538538

539539
argument_signatures = [Sig('-x', nargs=1)]
540540
failures = ['a', '-x']
@@ -545,7 +545,7 @@ class TestOptionalsNargs1(ParserTestCase):
545545

546546

547547
class TestOptionalsNargs3(ParserTestCase):
548-
"""Tests specifying the 3 args for an Optional"""
548+
"""Tests specifying 3 args for an Optional"""
549549

550550
argument_signatures = [Sig('-x', nargs=3)]
551551
failures = ['a', '-x', '-x a', '-x a b', 'a -x', 'a -x b']
@@ -579,7 +579,7 @@ class TestOptionalsNargsOptional(ParserTestCase):
579579

580580

581581
class TestOptionalsNargsZeroOrMore(ParserTestCase):
582-
"""Tests specifying an args for an Optional that accepts zero or more"""
582+
"""Tests specifying args for an Optional that accepts zero or more"""
583583

584584
argument_signatures = [
585585
Sig('-x', nargs='*'),
@@ -598,7 +598,7 @@ class TestOptionalsNargsZeroOrMore(ParserTestCase):
598598

599599

600600
class TestOptionalsNargsOneOrMore(ParserTestCase):
601-
"""Tests specifying an args for an Optional that accepts one or more"""
601+
"""Tests specifying args for an Optional that accepts one or more"""
602602

603603
argument_signatures = [
604604
Sig('-x', nargs='+'),
@@ -1251,7 +1251,7 @@ class TestPrefixCharacterOnlyArguments(ParserTestCase):
12511251

12521252

12531253
class TestNargsZeroOrMore(ParserTestCase):
1254-
"""Tests specifying an args for an Optional that accepts zero or more"""
1254+
"""Tests specifying args for an Optional that accepts zero or more"""
12551255

12561256
argument_signatures = [Sig('-x', nargs='*'), Sig('y', nargs='*')]
12571257
failures = []

Lib/warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def formatwarning(message, category, filename, lineno, line=None):
2828
line = linecache.getline(filename, lineno)
2929
except Exception:
3030
# When a warning is logged during Python shutdown, linecache
31-
# and the improt machinery don't work anymore
31+
# and the import machinery don't work anymore
3232
line = None
3333
if line:
3434
line = line.strip()

Misc/NEWS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ Library
18121812
Build
18131813
-----
18141814

1815-
- Issue #23817: FreeBSD now uses "1.0" the the SOVERSION as other operating
1815+
- Issue #23817: FreeBSD now uses "1.0" in the SOVERSION as other operating
18161816
systems, instead of just "1".
18171817

18181818
- Issue #23501: Argument Clinic now generates code into separate files by default.
@@ -6826,7 +6826,7 @@ Library
68266826
Thomas Barlow.
68276827

68286828
- Issue #17358: Modules loaded by imp.load_source() and load_compiled() (and by
6829-
extention load_module()) now have a better chance of working when reloaded.
6829+
extension load_module()) now have a better chance of working when reloaded.
68306830

68316831
- Issue #17804: New function ``struct.iter_unpack`` allows for streaming
68326832
struct unpacking.
@@ -7509,7 +7509,7 @@ Library
75097509
- Issue #16284: Prevent keeping unnecessary references to worker functions
75107510
in concurrent.futures ThreadPoolExecutor.
75117511

7512-
- Issue #16230: Fix a crash in select.select() when one the lists changes
7512+
- Issue #16230: Fix a crash in select.select() when one of the lists changes
75137513
size while iterated on. Patch by Serhiy Storchaka.
75147514

75157515
- Issue #16228: Fix a crash in the json module where a list changes size

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ profile the interpreter execution. Note also that any output, both stdout
7171
and stderr, that may appear at this step is supressed.
7272

7373
Finally, the last step is to rebuild the interpreter, using the information
74-
collected in the previous one. The end result will be a the Python binary
74+
collected in the previous one. The end result will be a Python binary
7575
that is optimized and suitable for distribution or production installation.
7676

7777

0 commit comments

Comments
 (0)