Skip to content

Commit bc10e6b

Browse files
authored
Asyncio documentation: remove self from method signatures (GH-334) (GH-337)
(cherry picked from commit 091b84f)
1 parent 8aa1ad8 commit bc10e6b

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
@@ -36,15 +36,15 @@ BaseTransport
3636

3737
Base class for transports.
3838

39-
.. method:: close(self)
39+
.. method:: close()
4040

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

47-
.. method:: is_closing(self)
47+
.. method:: is_closing()
4848

4949
Return ``True`` if the transport is closing or is closed.
5050

@@ -251,7 +251,7 @@ BaseSubprocessTransport
251251
if it hasn't returned, similarly to the
252252
:attr:`subprocess.Popen.returncode` attribute.
253253

254-
.. method:: kill(self)
254+
.. method:: kill()
255255

256256
Kill the subprocess, as in :meth:`subprocess.Popen.kill`.
257257

0 commit comments

Comments
 (0)