From a99b612f160707afc6bde0d7c007da429f1df4a9 Mon Sep 17 00:00:00 2001 From: eamanu Date: Wed, 29 May 2019 22:49:11 -0300 Subject: [PATCH 1/3] Add deprecated-remove information on stream doc According to the code on streams.py the functions: ``open_connection()``, ``start_server()``, ``open_unix_connection()``, ``start_unix_server()`` are deprecated. I infor that on documentation. --- Doc/library/asyncio-stream.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst index e735b81f234d26..8d26f7a00d10d1 100644 --- a/Doc/library/asyncio-stream.rst +++ b/Doc/library/asyncio-stream.rst @@ -67,6 +67,9 @@ and work with streams: The *ssl_handshake_timeout* parameter. + .. deprecated-removed :: 3.8 3.10 + ``open_connection()`` is deprecated in favor of ``connect()``. + .. coroutinefunction:: start_server(client_connected_cb, host=None, \ port=None, \*, loop=None, limit=None, \ family=socket.AF_UNSPEC, \ @@ -100,6 +103,9 @@ and work with streams: The *ssl_handshake_timeout* and *start_serving* parameters. + .. deprecated-removed :: 3.8 3.10 + ``start_server()`` is deprecated if favor of ``StreamServer()`` + .. rubric:: Unix Sockets @@ -124,6 +130,9 @@ and work with streams: The *path* parameter can now be a :term:`path-like object` + .. deprecated-removed :: 3.8 3.10 + ``open_unix_connection()`` is deprecated if favor of ``connect_unix()``. + .. coroutinefunction:: start_unix_server(client_connected_cb, path=None, \ \*, loop=None, limit=None, sock=None, \ @@ -146,6 +155,9 @@ and work with streams: The *path* parameter can now be a :term:`path-like object`. + .. deprecated-removed :: 3.8 3.10 + ``start_unix_server()`` is deprecated in favor of ``UnixStreamServer()``. + --------- From 752b6ae9523e4189e5a53c2bf95f499648cb0178 Mon Sep 17 00:00:00 2001 From: eamanu Date: Thu, 30 May 2019 22:12:55 -0300 Subject: [PATCH 2/3] Fix issue --- Doc/library/asyncio-stream.rst | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst index 8d26f7a00d10d1..e0c197d243738f 100644 --- a/Doc/library/asyncio-stream.rst +++ b/Doc/library/asyncio-stream.rst @@ -68,7 +68,8 @@ and work with streams: The *ssl_handshake_timeout* parameter. .. deprecated-removed :: 3.8 3.10 - ``open_connection()`` is deprecated in favor of ``connect()``. + + `open_connection()` is deprecated in favor of `connect()`. .. coroutinefunction:: start_server(client_connected_cb, host=None, \ port=None, \*, loop=None, limit=None, \ @@ -104,7 +105,8 @@ and work with streams: The *ssl_handshake_timeout* and *start_serving* parameters. .. deprecated-removed :: 3.8 3.10 - ``start_server()`` is deprecated if favor of ``StreamServer()`` + + `start_server()` is deprecated if favor of `StreamServer()` .. rubric:: Unix Sockets @@ -131,7 +133,8 @@ and work with streams: The *path* parameter can now be a :term:`path-like object` .. deprecated-removed :: 3.8 3.10 - ``open_unix_connection()`` is deprecated if favor of ``connect_unix()``. + + `open_unix_connection()` is deprecated if favor of `connect_unix()`. .. coroutinefunction:: start_unix_server(client_connected_cb, path=None, \ @@ -156,7 +159,8 @@ and work with streams: The *path* parameter can now be a :term:`path-like object`. .. deprecated-removed :: 3.8 3.10 - ``start_unix_server()`` is deprecated in favor of ``UnixStreamServer()``. + + `start_unix_server()` is deprecated in favor of `UnixStreamServer()`. --------- From 07a3bf28a5d31c661a2d13e71f07c69bcc203052 Mon Sep 17 00:00:00 2001 From: eamanu Date: Thu, 30 May 2019 22:31:50 -0300 Subject: [PATCH 3/3] Fix more lazy issue --- Doc/library/asyncio-stream.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst index e0c197d243738f..28ca5d5f339692 100644 --- a/Doc/library/asyncio-stream.rst +++ b/Doc/library/asyncio-stream.rst @@ -67,7 +67,7 @@ and work with streams: The *ssl_handshake_timeout* parameter. - .. deprecated-removed :: 3.8 3.10 + .. deprecated-removed:: 3.8 3.10 `open_connection()` is deprecated in favor of `connect()`. @@ -104,7 +104,7 @@ and work with streams: The *ssl_handshake_timeout* and *start_serving* parameters. - .. deprecated-removed :: 3.8 3.10 + .. deprecated-removed:: 3.8 3.10 `start_server()` is deprecated if favor of `StreamServer()` @@ -132,7 +132,7 @@ and work with streams: The *path* parameter can now be a :term:`path-like object` - .. deprecated-removed :: 3.8 3.10 + .. deprecated-removed:: 3.8 3.10 `open_unix_connection()` is deprecated if favor of `connect_unix()`. @@ -158,7 +158,7 @@ and work with streams: The *path* parameter can now be a :term:`path-like object`. - .. deprecated-removed :: 3.8 3.10 + .. deprecated-removed:: 3.8 3.10 `start_unix_server()` is deprecated in favor of `UnixStreamServer()`.