diff options
Diffstat (limited to 'Doc/library/telnetlib.rst')
-rw-r--r-- | Doc/library/telnetlib.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/telnetlib.rst b/Doc/library/telnetlib.rst index 646634db7c..9bc79c5154 100644 --- a/Doc/library/telnetlib.rst +++ b/Doc/library/telnetlib.rst @@ -162,9 +162,13 @@ Telnet Objects .. method:: Telnet.write(buffer) Write a byte string to the socket, doubling any IAC characters. This can - block if the connection is blocked. May raise :exc:`socket.error` if the + block if the connection is blocked. May raise :exc:`OSError` if the connection is closed. + .. versionchanged:: 3.3 + This method used to raise :exc:`socket.error`, which is now an alias + of :exc:`OSError`. + .. method:: Telnet.interact() |