Skip to content

Commit d3efa3c

Browse files
committed
Fix problems
1 parent ada3eef commit d3efa3c

File tree

4 files changed

+61
-60
lines changed

4 files changed

+61
-60
lines changed

Doc/library/asyncio-eventloop.rst

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -407,13 +407,13 @@ Opening network connections
407407
^^^^^^^^^^^^^^^^^^^^^^^^^^^
408408

409409
.. method:: loop.create_connection(protocol_factory, \
410-
host=None, port=None, *, ssl=None, \
411-
family=0, proto=0, flags=0, sock=None, \
412-
local_addr=None, server_hostname=None, \
413-
ssl_handshake_timeout=None, \
414-
ssl_shutdown_timeout=None, \
415-
happy_eyeballs_delay=None, interleave=None, \
416-
all_errors=False)
410+
host=None, port=None, *, ssl=None, \
411+
family=0, proto=0, flags=0, sock=None, \
412+
local_addr=None, server_hostname=None, \
413+
ssl_handshake_timeout=None, \
414+
ssl_shutdown_timeout=None, \
415+
happy_eyeballs_delay=None, interleave=None, \
416+
all_errors=False)
417417
:async:
418418
419419
Open a streaming transport connection to a given
@@ -561,10 +561,11 @@ Opening network connections
561561
that can be used directly in async/await code.
562562

563563
.. method:: loop.create_datagram_endpoint(protocol_factory, \
564-
local_addr=None, remote_addr=None, *, \
565-
family=0, proto=0, flags=0, \
566-
reuse_port=None, \
567-
allow_broadcast=None, sock=None)
564+
local_addr=None, remote_addr=None, *, \
565+
family=0, proto=0, flags=0, \
566+
reuse_port=None, \
567+
allow_broadcast=None, sock=None)
568+
:async:
568569
569570
Create a datagram connection.
570571

@@ -646,9 +647,9 @@ Opening network connections
646647
3.7.6 and 3.6.10, has been entirely removed.
647648

648649
.. method:: loop.create_unix_connection(protocol_factory, \
649-
path=None, *, ssl=None, sock=None, \
650-
server_hostname=None, ssl_handshake_timeout=None, \
651-
ssl_shutdown_timeout=None)
650+
path=None, *, ssl=None, sock=None, \
651+
server_hostname=None, ssl_handshake_timeout=None, \
652+
ssl_shutdown_timeout=None)
652653
:async:
653654
654655
Create a Unix connection.
@@ -683,15 +684,15 @@ Creating network servers
683684
.. _loop_create_server:
684685

685686
.. method:: loop.create_server(protocol_factory, \
686-
host=None, port=None, *, \
687-
family=socket.AF_UNSPEC, \
688-
flags=socket.AI_PASSIVE, \
689-
sock=None, backlog=100, ssl=None, \
690-
reuse_address=None, reuse_port=None, \
691-
keep_alive=None, \
692-
ssl_handshake_timeout=None, \
693-
ssl_shutdown_timeout=None, \
694-
start_serving=True)
687+
host=None, port=None, *, \
688+
family=socket.AF_UNSPEC, \
689+
flags=socket.AI_PASSIVE, \
690+
sock=None, backlog=100, ssl=None, \
691+
reuse_address=None, reuse_port=None, \
692+
keep_alive=None, \
693+
ssl_handshake_timeout=None, \
694+
ssl_shutdown_timeout=None, \
695+
start_serving=True)
695696
:async:
696697
697698
Create a TCP server (socket type :const:`~socket.SOCK_STREAM`) listening
@@ -801,10 +802,10 @@ Creating network servers
801802

802803

803804
.. method:: loop.create_unix_server(protocol_factory, path=None, \
804-
*, sock=None, backlog=100, ssl=None, \
805-
ssl_handshake_timeout=None, \
806-
ssl_shutdown_timeout=None, \
807-
start_serving=True, cleanup_socket=True)
805+
*, sock=None, backlog=100, ssl=None, \
806+
ssl_handshake_timeout=None, \
807+
ssl_shutdown_timeout=None, \
808+
start_serving=True, cleanup_socket=True)
808809
:async:
809810
810811
Similar to :meth:`loop.create_server` but works with the
@@ -839,8 +840,8 @@ Creating network servers
839840

840841

841842
.. method:: loop.connect_accepted_socket(protocol_factory, \
842-
sock, *, ssl=None, ssl_handshake_timeout=None, \
843-
ssl_shutdown_timeout=None)
843+
sock, *, ssl=None, ssl_handshake_timeout=None, \
844+
ssl_shutdown_timeout=None)
844845
:async:
845846
846847
Wrap an already accepted connection into a transport/protocol pair.
@@ -890,7 +891,7 @@ Transferring files
890891
^^^^^^^^^^^^^^^^^^
891892

892893
.. method:: loop.sendfile(transport, file, \
893-
offset=0, count=None, *, fallback=True)
894+
offset=0, count=None, *, fallback=True)
894895
:async:
895896
896897
Send a *file* over a *transport*. Return the total number of bytes
@@ -921,9 +922,9 @@ TLS Upgrade
921922
^^^^^^^^^^^
922923

923924
.. method:: loop.start_tls(transport, protocol, \
924-
sslcontext, *, server_side=False, \
925-
server_hostname=None, ssl_handshake_timeout=None, \
926-
ssl_shutdown_timeout=None)
925+
sslcontext, *, server_side=False, \
926+
server_hostname=None, ssl_handshake_timeout=None, \
927+
ssl_shutdown_timeout=None)
927928
:async:
928929
929930
Upgrade an existing transport-based connection to TLS.
@@ -1148,7 +1149,7 @@ convenient.
11481149
:meth:`loop.create_server` and :func:`start_server`.
11491150

11501151
.. method:: loop.sock_sendfile(sock, file, offset=0, count=None, \
1151-
*, fallback=True)
1152+
*, fallback=True)
11521153
:async:
11531154
11541155
Send a file using high-performance :mod:`os.sendfile` if possible.
@@ -1184,7 +1185,7 @@ DNS
11841185
^^^
11851186

11861187
.. method:: loop.getaddrinfo(host, port, *, family=0, \
1187-
type=0, proto=0, flags=0)
1188+
type=0, proto=0, flags=0)
11881189
:async:
11891190

11901191
Asynchronous version of :meth:`socket.getaddrinfo`.
@@ -1503,8 +1504,8 @@ async/await code consider using the high-level
15031504
.. _loop_subprocess_exec:
15041505

15051506
.. method:: loop.subprocess_exec(protocol_factory, *args, \
1506-
stdin=subprocess.PIPE, stdout=subprocess.PIPE, \
1507-
stderr=subprocess.PIPE, **kwargs)
1507+
stdin=subprocess.PIPE, stdout=subprocess.PIPE, \
1508+
stderr=subprocess.PIPE, **kwargs)
15081509
:async:
15091510
15101511
Create a subprocess from one or more string arguments specified by
@@ -1586,8 +1587,8 @@ async/await code consider using the high-level
15861587
*protocol* is an object instantiated by the *protocol_factory*.
15871588

15881589
.. method:: loop.subprocess_shell(protocol_factory, cmd, *, \
1589-
stdin=subprocess.PIPE, stdout=subprocess.PIPE, \
1590-
stderr=subprocess.PIPE, **kwargs)
1590+
stdin=subprocess.PIPE, stdout=subprocess.PIPE, \
1591+
stderr=subprocess.PIPE, **kwargs)
15911592
:async:
15921593
15931594
Create a subprocess from *cmd*, which can be a :class:`str` or a

Doc/library/asyncio-stream.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ and work with streams:
4949

5050

5151
.. function:: open_connection(host=None, port=None, *, \
52-
limit=None, ssl=None, family=0, proto=0, \
53-
flags=0, sock=None, local_addr=None, \
54-
server_hostname=None, ssl_handshake_timeout=None, \
55-
ssl_shutdown_timeout=None, \
56-
happy_eyeballs_delay=None, interleave=None)
52+
limit=None, ssl=None, family=0, proto=0, \
53+
flags=0, sock=None, local_addr=None, \
54+
server_hostname=None, ssl_handshake_timeout=None, \
55+
ssl_shutdown_timeout=None, \
56+
happy_eyeballs_delay=None, interleave=None)
5757
:async:
5858

5959
Establish a network connection and return a pair of
@@ -89,13 +89,13 @@ and work with streams:
8989

9090

9191
.. function:: start_server(client_connected_cb, host=None, \
92-
port=None, *, limit=None, \
93-
family=socket.AF_UNSPEC, \
94-
flags=socket.AI_PASSIVE, sock=None, \
95-
backlog=100, ssl=None, reuse_address=None, \
96-
reuse_port=None, keep_alive=None, \
97-
ssl_handshake_timeout=None, \
98-
ssl_shutdown_timeout=None, start_serving=True)
92+
port=None, *, limit=None, \
93+
family=socket.AF_UNSPEC, \
94+
flags=socket.AI_PASSIVE, sock=None, \
95+
backlog=100, ssl=None, reuse_address=None, \
96+
reuse_port=None, keep_alive=None, \
97+
ssl_handshake_timeout=None, \
98+
ssl_shutdown_timeout=None, start_serving=True)
9999
:async:
100100
101101
Start a socket server.
@@ -138,8 +138,8 @@ and work with streams:
138138
.. rubric:: Unix Sockets
139139

140140
.. function:: open_unix_connection(path=None, *, limit=None, \
141-
ssl=None, sock=None, server_hostname=None, \
142-
ssl_handshake_timeout=None, ssl_shutdown_timeout=None)
141+
ssl=None, sock=None, server_hostname=None, \
142+
ssl_handshake_timeout=None, ssl_shutdown_timeout=None)
143143
:async:
144144

145145
Establish a Unix socket connection and return a pair of
@@ -169,9 +169,9 @@ and work with streams:
169169

170170

171171
.. function:: start_unix_server(client_connected_cb, path=None, \
172-
*, limit=None, sock=None, backlog=100, ssl=None, \
173-
ssl_handshake_timeout=None, \
174-
ssl_shutdown_timeout=None, start_serving=True)
172+
*, limit=None, sock=None, backlog=100, ssl=None, \
173+
ssl_handshake_timeout=None, \
174+
ssl_shutdown_timeout=None, start_serving=True)
175175
:async:
176176
177177
Start a Unix socket server.
@@ -372,7 +372,7 @@ StreamWriter
372372
returns immediately.
373373

374374
.. method:: start_tls(sslcontext, *, server_hostname=None, \
375-
ssl_handshake_timeout=None, ssl_shutdown_timeout=None)
375+
ssl_handshake_timeout=None, ssl_shutdown_timeout=None)
376376
:async:
377377

378378
Upgrade an existing stream-based connection to TLS.

Doc/library/asyncio-subprocess.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Creating Subprocesses
6262
=====================
6363

6464
.. function:: create_subprocess_exec(program, *args, stdin=None, \
65-
stdout=None, stderr=None, limit=None, **kwds)
65+
stdout=None, stderr=None, limit=None, **kwds)
6666
:async:
6767
6868
Create a subprocess.
@@ -81,7 +81,7 @@ Creating Subprocesses
8181

8282

8383
.. function:: create_subprocess_shell(cmd, stdin=None, \
84-
stdout=None, stderr=None, limit=None, **kwds)
84+
stdout=None, stderr=None, limit=None, **kwds)
8585
:async:
8686
8787
Run the *cmd* shell command.

Doc/reference/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ which are used to control the execution of a generator function.
786786

787787

788788
.. method:: agen.athrow(value)
789-
agen.athrow(type[, value[, traceback]])
789+
agen.athrow(type[, value[, traceback]])
790790
:async:
791791

792792
Returns an awaitable that raises an exception of type ``type`` at the point

0 commit comments

Comments
 (0)