Visitar URL original
Asyncio documentation: remove `self` from method signatures (GH-334) · Mariatta/cpython@3614927 · GitHub
Skip to content

Commit 3614927

Browse files
committed
Asyncio documentation: remove self from method signatures (pythonGH-334)
(cherry picked from commit 091b84f)
1 parent 8400ae2 commit 3614927

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎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)