Wrong documentation? - SFTPHandle.read returns tuple
hakaishi opened this issue · 1 comments
hakaishi commented
documentation url: https://ssh2-python.readthedocs.io/en/latest/sftp_handle.html#ssh2.sftp_handle.SFTPHandle.read
Problem: Documentation says that read returns bytes, but it actually returns a tuple of (return code, bytes)
pkittenis commented
Thanks for the interest.
Yes, documentation is wrong, it should be a tuple. PR to update them is welcome.