telnetlib3
telnetlib3 copied to clipboard
Deprecation error for `reader.close` and no documentation available
When using telnetlib3 I tried to close an open connection using
reader.close()
writer.close()
which triggered a deprecation warning
Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\telnetlib3\stream_reader.py:393: DeprecationWarning: connection_closed deprecated, use feed_eof() instead
However, the documentation on close
and feed_eof
does not seem to exist in the documentation. That makes it a bit hard to understand why not use the usual close
method to close a connection, and what feed_eof
does and how this can be properly used.
- Python: 3.10.11
- Windows 10
- telnetlib3: 2.0.2