diff options
-rw-r--r-- | paramiko/sftp_client.py | 3 | ||||
-rw-r--r-- | paramiko/sftp_si.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py index 97715ae3..f2e6869f 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -391,7 +391,8 @@ class SFTPClient(BaseSFTP, ClosingContextManager): :param str newpath: new name for the file or folder, will be overwritten if it already exists - :raises IOError: if ``newpath`` is a folder, posix-rename is not + :raises: + ``IOError`` -- if ``newpath`` is a folder, posix-rename is not supported by the server or something else goes wrong """ oldpath = self._adjust_cwd(oldpath) diff --git a/paramiko/sftp_si.py b/paramiko/sftp_si.py index bfe7b7c7..40969309 100644 --- a/paramiko/sftp_si.py +++ b/paramiko/sftp_si.py @@ -209,7 +209,7 @@ class SFTPServerInterface (object): :param str oldpath: the requested path (relative or absolute) of the existing file. :param str newpath: the requested new path of the file. - :return: an SFTP error code `int` like `.SFTP_OK`. + :return: an SFTP error code `int` like ``SFTP_OK``. """ return SFTP_OP_UNSUPPORTED |