Skip to content

Commit b945e07

Browse files
authored
Asyncio documentation: remove self from method signatures (GH-334) (GH-336)
(cherry picked from commit 091b84f)
1 parent 8400ae2 commit b945e07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/asyncio-protocol.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ BaseTransport
3333

3434
Base class for transports.
3535

36-
.. method:: close(self)
36+
.. method:: close()
3737

3838
Close the transport. If the transport has a buffer for outgoing
3939
data, buffered data will be flushed asynchronously. No more data
4040
will be received. After all buffered data is flushed, the
4141
protocol's :meth:`connection_lost` method will be called with
4242
:const:`None` as its argument.
4343

44-
.. method:: is_closing(self)
44+
.. method:: is_closing()
4545

4646
Return ``True`` if the transport is closing or is closed.
4747

@@ -248,7 +248,7 @@ BaseSubprocessTransport
248248
if it hasn't returned, similarly to the
249249
:attr:`subprocess.Popen.returncode` attribute.
250250

251-
.. method:: kill(self)
251+
.. method:: kill()
252252

253253
Kill the subprocess, as in :meth:`subprocess.Popen.kill`.
254254

0 commit comments

Comments
 (0)