summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2023-06-09 13:41:05 -0400
committerJeff Forcier <jeff@bitprophet.org>2023-06-09 13:41:13 -0400
commit3e24032af1cafe89a55e7af01fe961816016ad71 (patch)
treea0cfbd0c2e96f90b761f7666194a8ad34ec9d4de
parent96f4d5a7148283c96d0bef032c757ac9549c9454 (diff)
Add versionchanged directives re #2058
-rw-r--r--paramiko/sftp_client.py4
-rw-r--r--paramiko/sftp_file.py4
2 files changed, 8 insertions, 0 deletions
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py
index d7c28f25..066cd83f 100644
--- a/paramiko/sftp_client.py
+++ b/paramiko/sftp_client.py
@@ -789,6 +789,8 @@ class SFTPClient(BaseSFTP, ClosingContextManager):
.. versionadded:: 1.10
.. versionchanged:: 2.8
Added the ``prefetch`` keyword argument.
+ .. versionchanged:: 3.3
+ Added ``max_concurrent_prefetch_requests``.
"""
file_size = self.stat(remotepath).st_size
with self.open(remotepath, "rb") as fr:
@@ -831,6 +833,8 @@ class SFTPClient(BaseSFTP, ClosingContextManager):
Added the ``callback`` param
.. versionchanged:: 2.8
Added the ``prefetch`` keyword argument.
+ .. versionchanged:: 3.3
+ Added ``max_concurrent_prefetch_requests``.
"""
with open(localpath, "wb") as fl:
size = self.getfo(
diff --git a/paramiko/sftp_file.py b/paramiko/sftp_file.py
index 94d62747..c74695e0 100644
--- a/paramiko/sftp_file.py
+++ b/paramiko/sftp_file.py
@@ -465,6 +465,8 @@ class SFTPFile(BufferedFile):
.. versionchanged:: 1.16.1
The ``file_size`` parameter was made optional for backwards
compatibility.
+ .. versionchanged:: 3.3
+ Added ``max_concurrent_requests``.
"""
if file_size is None:
file_size = self.stat().st_size
@@ -496,6 +498,8 @@ class SFTPFile(BufferedFile):
:return: a list of blocks read, in the same order as in ``chunks``
.. versionadded:: 1.5.4
+ .. versionchanged:: 3.3
+ Added ``max_concurrent_prefetch_requests``.
"""
self.sftp._log(
DEBUG, "readv({}, {!r})".format(hexlify(self.handle), chunks)