E571 #11565: Fix several typos. Patch by Piotr Kasprzyk. · python/cpython@1392500 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1392500

Browse files
committed
#11565: Fix several typos. Patch by Piotr Kasprzyk.
1 parent e3d09ff commit 1392500

File tree

94 files changed

+126
-126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+126
-126
lines changed

Demo/turtle/tdemo_bytedesign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
tdemo_bytedesign.py
55
66
An example adapted from the example-suite
7-
of PythonCard's turtle graphcis.
7+
of PythonCard's turtle graphics.
88
99
It's based on an article in BYTE magazine
1010
Problem Solving with Logo: Using Turtle
Lines changed: 1 addition & 1 deletion
8B92
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sqlite3
22

33
# The shared cache is only available in SQLite versions 3.3.3 or later
4-
# See the SQLite documentaton for details.
4+
# See the SQLite documentation for details.
55

66
sqlite3.enable_shared_cache(True)

Include/abstract.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
466466
arbitrary data.
467467
468468
0 is returned on success. buffer and buffer_len are only
469-
set in case no error occurrs. Otherwise, -1 is returned and
469+
set in case no error occurs. Otherwise, -1 is returned and
470470
an exception set.
471471
*/
472472

@@ -480,7 +480,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
480480
writable memory location in buffer of size buffer_len.
481481
482482
0 is returned on success. buffer and buffer_len are only
483-
set in case no error occurrs. Otherwise, -1 is returned and
483+
set in case no error occurs. Otherwise, -1 is returned and
484484
an exception set.
485485
*/
486486

Include/pymacconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# endif
5656

5757
# if defined(__LP64__)
58-
/* MacOSX 10.4 (the first release to suppport 64-bit code
58+
/* MacOSX 10.4 (the first release to support 64-bit code
5959
* at all) only supports 64-bit in the UNIX layer.
6060
* Therefore surpress the toolbox-glue in 64-bit mode.
6161
*/

Lib/csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def _guess_delimiter(self, data, delimiters):
270270
an all or nothing approach, so we allow for small variations in this
271271
number.
272272
1) build a table of the frequency of each character on every line.
273-
2) build a table of freqencies of this frequency (meta-frequency?),
273+
2) build a table of frequencies of this frequency (meta-frequency?),
274274
e.g. 'x occurred 5 times in 10 rows, 6 times in 1000 rows,
275275
7 times in 2 rows'
276276
3) use the mode of the meta-frequency to determine the /expected/

Lib/ctypes/test/test_arrays.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_simple(self):
3737
values = [ia[i] for i in range(len(init))]
3838
self.assertEqual(values, [0] * len(init))
3939

40-
# Too many in itializers should be caught
40+
# Too many initializers should be caught
4141
self.assertRaises(IndexError, int_array, *range(alen*2))
4242

4343
CharArray = ARRAY(c_char, 3)

Lib/ctypes/test/test_init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_get(self):
2727
self.assertEqual((y.x.a, y.x.b), (0, 0))
2828
self.assertEqual(y.x.new_was_called, False)
2929

30-
# But explicitely creating an X structure calls __new__ and __init__, of course.
30+
# But explicitly creating an X structure calls __new__ and __init__, of course.
3131
x = X()
3232
self.assertEqual((x.a, x.b), (9, 12))
3333
self.assertEqual(x.new_was_called, True)

Lib/ctypes/test/test_numbers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def test_alignments(self):
157157
def test_int_from_address(self):
158158
from array import array
159159
for t in signed_types + unsigned_types:
160-
# the array module doesn't suppport all format codes
160+
# the array module doesn't support all format codes
161161
# (no 'q' or 'Q')
162162
try:
163163
array(t._type_)

Lib/ctypes/test/test_win32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_callconv_1(self):
1717
# ValueError: Procedure probably called with not enough arguments (4 bytes missing)
1818
self.assertRaises(ValueError, IsWindow)
1919

20-
# This one should succeeed...
20+
# This one should succeed...
2121
self.assertEqual(0, IsWindow(0))
2222

2323
# ValueError: Procedure probably called with too many arguments (8 bytes in excess)

Lib/difflib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,7 @@ def expand_tabs(line):
17121712
line = line.replace(' ','\0')
17131713
# expand tabs into spaces
17141714
line = line.expandtabs(self._tabsize)
1715-
# relace spaces from expanded tabs back into tab characters
1715+
# replace spaces from expanded tabs back into tab characters
17161716
# (we'll replace them with markup after we do differencing)
17171717
line = line.replace(' ','\t')
17181718
return line.replace('\0',' ').rstrip('\n')

0 commit comments

Comments
 (0)
0