From cfd4af06dc66a9b0ac8ebd7559f2657acdb77d39 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Fri, 20 Jan 2023 16:11:47 -0500 Subject: Docstring and changelog tweaks, thanks @bskinn! --- paramiko/channel.py | 2 +- paramiko/file.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'paramiko') diff --git a/paramiko/channel.py b/paramiko/channel.py index 0e009eff..2757450b 100644 --- a/paramiko/channel.py +++ b/paramiko/channel.py @@ -828,7 +828,7 @@ class Channel(ClosingContextManager): `send`, this method continues to send data from the given string until either all data has been sent or an error occurs. Nothing is returned. - :param str s: data to send. + :param bytes s: data to send. :raises socket.timeout: if sending stalled for longer than the timeout set by `settimeout`. diff --git a/paramiko/file.py b/paramiko/file.py index b1450ac9..a36abb98 100644 --- a/paramiko/file.py +++ b/paramiko/file.py @@ -102,7 +102,9 @@ class BufferedFile(ClosingContextManager): :raises: ``StopIteration`` -- when the end of the file is reached. - :returns: a line (`str`) read from the file. + :returns: + a line (`str`, or `bytes` if the file was opened in binary mode) + read from the file. """ line = self.readline() if not line: -- cgit v1.2.1