telnetlib3 icon indicating copy to clipboard operation
telnetlib3 copied to clipboard

Deprecation error for `reader.close` and no documentation available

Open alex4200 opened this issue 1 year ago • 0 comments

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

alex4200 avatar Jun 09 '23 06:06 alex4200