Skip to content

Commit 93132bc

Browse files
committed
Fix spelling & typos
1 parent 81f1d99 commit 93132bc

12 files changed

+18
-18
lines changed

asyncio/events.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def create_unix_server(self, protocol_factory, path, *,
235235
sock=None, backlog=100, ssl=None):
236236
"""A coroutine which creates a UNIX Domain Socket server.
237237
238-
The return valud is a Server object, which can be used to stop
238+
The return value is a Server object, which can be used to stop
239239
the service.
240240
241241
path is a str, representing a file systsem path to bind the
@@ -260,7 +260,7 @@ def create_datagram_endpoint(self, protocol_factory,
260260
# Pipes and subprocesses.
261261

262262
def connect_read_pipe(self, protocol_factory, pipe):
263-
"""Register read pipe in eventloop.
263+
"""Register read pipe in event loop.
264264
265265
protocol_factory should instantiate object with Protocol interface.
266266
pipe is file-like object already switched to nonblocking.
@@ -273,7 +273,7 @@ def connect_read_pipe(self, protocol_factory, pipe):
273273
raise NotImplementedError
274274

275275
def connect_write_pipe(self, protocol_factory, pipe):
276-
"""Register write pipe in eventloop.
276+
"""Register write pipe in event loop.
277277
278278
protocol_factory should instantiate object with BaseProtocol interface.
279279
Pipe is file-like object already switched to nonblocking.

asyncio/protocols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class SubprocessProtocol(BaseProtocol):
114114
def pipe_data_received(self, fd, data):
115115
"""Called when the subprocess writes data into stdout/stderr pipe.
116116
117-
fd is int file dascriptor.
117+
fd is int file descriptor.
118118
data is bytes object.
119119
"""
120120

asyncio/selector_events.py

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

214214
def _sock_recv(self, fut, registered, sock, n):
215215
# _sock_recv() can add itself as an I/O callback if the operation can't
216-
# be done immediatly. Don't use it directly, call sock_recv().
216+
# be done immediately. Don't use it directly, call sock_recv().
217217
fd = sock.fileno()
218218
if registered:
219219
# Remove the callback early. It should be rare that the

asyncio/selectors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class BaseSelector(metaclass=ABCMeta):
8080
8181
A selector can use various implementations (select(), poll(), epoll()...)
8282
depending on the platform. The default `Selector` class uses the most
83-
performant implementation on the current platform.
83+
efficient implementation on the current platform.
8484
"""
8585

8686
@abstractmethod

asyncio/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def get_stack(self, *, limit=None):
181181
182182
The frames are always ordered from oldest to newest.
183183
184-
The optional limit gives the maximum nummber of frames to
184+
The optional limit gives the maximum number of frames to
185185
return; by default all available frames are returned. Its
186186
meaning differs depending on whether a stack or a traceback is
187187
returned: the newest frames of a stack are returned, but the

asyncio/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def gen():
259259
when = yield ...
260260
... = yield time_advance
261261
262-
Value retuned by yield is absolute time of next scheduled handler.
262+
Value returned by yield is absolute time of next scheduled handler.
263263
Value passed to yield is time advance to move loop's time forward.
264264
"""
265265

@@ -369,7 +369,7 @@ class MockPattern(str):
369369
"""A regex based str with a fuzzy __eq__.
370370
371371
Use this helper with 'mock.assert_called_with', or anywhere
372-
where a regexp comparison between strings is needed.
372+
where a regex comparison between strings is needed.
373373
374374
For instance:
375375
mock_call.assert_called_with(MockPattern('spam.*ham'))

asyncio/unix_events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Selector eventloop for Unix with signal handling."""
1+
"""Selector event loop for Unix with signal handling."""
22

33
import errno
44
import fcntl
@@ -244,7 +244,7 @@ def _set_nonblocking(fd):
244244

245245
class _UnixReadPipeTransport(transports.ReadTransport):
246246

247-
max_size = 256 * 1024 # max bytes we read in one eventloop iteration
247+
max_size = 256 * 1024 # max bytes we read in one event loop iteration
248248

249249
def __init__(self, loop, pipe, protocol, waiter=None, extra=None):
250250
super().__init__(extra)

asyncio/windows_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Selector and proactor eventloops for Windows."""
1+
"""Selector and proactor event loops for Windows."""
22

33
import _winapi
44
import errno

tests/test_base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def test_subprocess_exec_invalid_args(self):
277277
asyncio.SubprocessProtocol, *args, bufsize=4096)
278278

279279
def test_subprocess_shell_invalid_args(self):
280-
# exepected a string, not an int or a list
280+
# expected a string, not an int or a list
281281
self.assertRaises(TypeError,
282282
self.loop.run_until_complete, self.loop.subprocess_shell,
283283
asyncio.SubprocessProtocol, 123)

tests/test_futures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_init_constructor_default_loop(self):
3838
asyncio.set_event_loop(None)
3939

4040
def test_constructor_positional(self):
41-
# Make sure Future does't accept a positional argument
41+
# Make sure Future doesn't accept a positional argument
4242
self.assertRaises(TypeError, asyncio.Future, 42)
4343

4444
def test_cancel(self):

0 commit comments

Comments
 (0)