Skip to content

Commit ed9f356

Browse files
eamanuasvetlov
authored andcommitted
bpo-37105: Add deprecated-remove information on stream doc (#13672)
* 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.
1 parent a747c3a commit ed9f356

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Doc/library/asyncio-stream.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ and work with streams:
6767

6868
The *ssl_handshake_timeout* parameter.
6969

70+
.. deprecated-removed:: 3.8 3.10
71+
72+
`open_connection()` is deprecated in favor of `connect()`.
73+
7074
.. coroutinefunction:: start_server(client_connected_cb, host=None, \
7175
port=None, \*, loop=None, limit=None, \
7276
family=socket.AF_UNSPEC, \
@@ -100,6 +104,10 @@ and work with streams:
100104

101105
The *ssl_handshake_timeout* and *start_serving* parameters.
102106

107+
.. deprecated-removed:: 3.8 3.10
108+
109+
`start_server()` is deprecated if favor of `StreamServer()`
110+
103111

104112
.. rubric:: Unix Sockets
105113

@@ -124,6 +132,10 @@ and work with streams:
124132

125133
The *path* parameter can now be a :term:`path-like object`
126134

135+
.. deprecated-removed:: 3.8 3.10
136+
137+
`open_unix_connection()` is deprecated if favor of `connect_unix()`.
138+
127139

128140
.. coroutinefunction:: start_unix_server(client_connected_cb, path=None, \
129141
\*, loop=None, limit=None, sock=None, \
@@ -146,6 +158,10 @@ and work with streams:
146158

147159
The *path* parameter can now be a :term:`path-like object`.
148160

161+
.. deprecated-removed:: 3.8 3.10
162+
163+
`start_unix_server()` is deprecated in favor of `UnixStreamServer()`.
164+
149165

150166
---------
151167

0 commit comments

Comments
 (0)