summaryrefslogtreecommitdiff
path: root/paramiko/channel.py
diff options
context:
space:
mode:
Diffstat (limited to 'paramiko/channel.py')
-rw-r--r--paramiko/channel.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/paramiko/channel.py b/paramiko/channel.py
index ccd23e9d..5e0f6ab6 100644
--- a/paramiko/channel.py
+++ b/paramiko/channel.py
@@ -688,7 +688,7 @@ class Channel(ClosingContextManager):
length zero is returned, the channel stream has closed.
:param int nbytes: maximum number of bytes to read.
- :return: received data, as a ``str``/``bytes``.
+ :return: received data, as a `bytes`.
:raises socket.timeout:
if no data is ready before the timeout set by `settimeout`.
@@ -734,7 +734,7 @@ class Channel(ClosingContextManager):
channel stream has closed.
:param int nbytes: maximum number of bytes to read.
- :return: received data as a `str`
+ :return: received data as a `bytes`
:raises socket.timeout: if no data is ready before the timeout set by
`settimeout`.
@@ -786,7 +786,7 @@ class Channel(ClosingContextManager):
transmitted, the application needs to attempt delivery of the remaining
data.
- :param str s: data to send
+ :param bytes s: data to send
:return: number of bytes actually sent, as an `int`
:raises socket.timeout: if no data could be sent before the timeout set
@@ -807,7 +807,7 @@ class Channel(ClosingContextManager):
data has been sent: if only some of the data was transmitted, the
application needs to attempt delivery of the remaining data.
- :param str s: data to send.
+ :param bytes s: data to send.
:return: number of bytes actually sent, as an `int`.
:raises socket.timeout:
@@ -849,10 +849,10 @@ class Channel(ClosingContextManager):
"""
Send data to the channel's "stderr" stream, without allowing partial
results. Unlike `send_stderr`, this method continues to send data
- from the given string until all data has been sent or an error occurs.
- Nothing is returned.
+ from the given bytestring until all data has been sent or an error
+ occurs. Nothing is returned.
- :param str s: data to send to the client as "stderr" output.
+ :param bytes s: data to send to the client as "stderr" output.
:raises socket.timeout:
if sending stalled for longer than the timeout set by `settimeout`.