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

Skip to content

Commit e0c6916

Browse files
committed
#18741: merge with 3.3.
2 parents 1d8e7db + b5bc353 commit e0c6916

22 files changed

Lines changed: 38 additions & 36 deletions

File tree

Lib/concurrent/futures/process.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def _check_system_limits():
301301
# sysconf not available or setting not available
302302
return
303303
if nsems_max == -1:
304-
# indetermine limit, assume that limit is determined
304+
# indetermined limit, assume that limit is determined
305305
# by available memory only
306306
return
307307
if nsems_max >= 256:
@@ -415,7 +415,7 @@ def shutdown(self, wait=True):
415415
self._result_queue.put(None)
416416
if wait:
417417
self._queue_management_thread.join()
418-
# To reduce the risk of openning too many files, remove references to
418+
# To reduce the risk of opening too many files, remove references to
419419
# objects that use file descriptors.
420420
self._queue_management_thread = None
421421
self._call_queue = None

Lib/ctypes/test/runtests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
Run all tests found in this directory, and print a summary of the results.
44
Command line flags:
5-
-q quiet mode: don't prnt anything while the tests are running
5+
-q quiet mode: don't print anything while the tests are running
66
-r run tests repeatedly, look for refcount leaks
77
-u<resources>
88
Add resources to the lits of allowed resources. '*' allows all

Lib/ctypes/test/test_cfuncs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def test_void(self):
188188
self.assertEqual(self._dll.tv_i(-42), None)
189189
self.assertEqual(self.S(), -42)
190190

191-
# The following repeates the above tests with stdcall functions (where
191+
# The following repeats the above tests with stdcall functions (where
192192
# they are available)
193193
try:
194194
WinDLL

Lib/ctypes/test/test_numbers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def test_char_from_address(self):
213213

214214
def test_init(self):
215215
# c_int() can be initialized from Python's int, and c_int.
216-
# Not from c_long or so, which seems strange, abd should
216+
# Not from c_long or so, which seems strange, abc should
217217
# probably be changed:
218218
self.assertRaises(TypeError, c_int, c_long(42))
219219

Lib/ctypes/test/test_refcounts.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def func(*args):
4444
# this is the standard refcount for func
4545
self.assertEqual(grc(func), 2)
4646

47-
# the CFuncPtr instance holds atr least one refcount on func:
47+
# the CFuncPtr instance holds at least one refcount on func:
4848
f = OtherCallback(func)
4949
self.assertTrue(grc(func) > 2)
5050

@@ -61,7 +61,7 @@ class X(ctypes.Structure):
6161
x = X()
6262
x.a = OtherCallback(func)
6363

64-
# the CFuncPtr instance holds atr least one refcount on func:
64+
# the CFuncPtr instance holds at least one refcount on func:
6565
self.assertTrue(grc(func) > 2)
6666

6767
# and may release it again
@@ -74,7 +74,7 @@ class X(ctypes.Structure):
7474

7575
f = OtherCallback(func)
7676

77-
# the CFuncPtr instance holds atr least one refcount on func:
77+
# the CFuncPtr instance holds at least one refcount on func:
7878
self.assertTrue(grc(func) > 2)
7979

8080
# create a cycle

Lib/ctypes/test/test_structures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class XX(Structure):
108108
def test_emtpy(self):
109109
# I had problems with these
110110
#
111-
# Although these are patological cases: Empty Structures!
111+
# Although these are pathological cases: Empty Structures!
112112
class X(Structure):
113113
_fields_ = []
114114

Lib/distutils/command/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def handle_extra_path(self):
530530
self.extra_dirs = extra_dirs
531531

532532
def change_roots(self, *names):
533-
"""Change the install direcories pointed by name using root."""
533+
"""Change the install directories pointed by name using root."""
534534
for name in names:
535535
attr = "install_" + name
536536
setattr(self, attr, change_root(self.root, getattr(self, attr)))

Lib/distutils/command/sdist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def get_file_list(self):
175175
depends on the user's options.
176176
"""
177177
# new behavior when using a template:
178-
# the file list is recalculated everytime because
178+
# the file list is recalculated every time because
179179
# even if MANIFEST.in or setup.py are not changed
180180
# the user might have added some files in the tree that
181181
# need to be included.

Lib/distutils/tests/test_build_clib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def compile(*args, **kw):
7777

7878
cmd.compiler = FakeCompiler()
7979

80-
# build_libraries is also doing a bit of typoe checking
80+
# build_libraries is also doing a bit of typo checking
8181
lib = [('name', {'sources': 'notvalid'})]
8282
self.assertRaises(DistutilsSetupError, cmd.build_libraries, lib)
8383

Lib/idlelib/idle_test/mock_tk.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Mbox:
3535
"""Mock for tkinter.messagebox with an Mbox_func for each function.
3636
3737
This module was 'tkMessageBox' in 2.x; hence the 'import as' in 3.x.
38-
Example usage in test_module.py for testing functios in module.py:
38+
Example usage in test_module.py for testing functions in module.py:
3939
---
4040
from idlelib.idle_test.mock_tk import Mbox
4141
import module
@@ -98,7 +98,7 @@ def _decode(self, index, endflag=0):
9898
9999
This implements .index without converting the result back to a string.
100100
The result is contrained by the number of lines and linelengths of
101-
self.data. For many indexes, the result is initally (1, 0).
101+
self.data. For many indexes, the result is initially (1, 0).
102102
103103
The input index may have any of several possible forms:
104104
* line.char float: converted to 'line.char' string;
@@ -149,7 +149,7 @@ def _endex(self, endflag):
149149
150150
-1: position before terminal \n; for .insert(), .delete
151151
0: position after terminal \n; for .get, .delete index 1
152-
1: same viewed as begininning of non-existent next line (for .index)
152+
1: same viewed as beginning of non-existent next line (for .index)
153153
'''
154154
n = len(self.data)
155155
if endflag == 1:
@@ -271,7 +271,7 @@ def see(self, index):
271271
"Scroll screen to make the character at INDEX is visible."
272272
pass
273273

274-
# The following is a Misc method inheritet by Text.
274+
# The following is a Misc method inherited by Text.
275275
# It should properly go in a Misc mock, but is included here for now.
276276

277277
def bind(sequence=None, func=None, add=None):

0 commit comments

Comments
 (0)