diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-06-06 15:31:48 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-06-06 15:31:48 -0700 |
commit | 7150b58ad69b63d6e76e98d70578da5890c440e9 (patch) | |
tree | 1f4a5770049c2490d358a8ec9909e1fb87406e1b | |
parent | ccbcca2166a47f6a29a6cffd88a33cc997252a6f (diff) |
flake8
-rw-r--r-- | paramiko/sftp_client.py | 13 | ||||
-rw-r--r-- | paramiko/sftp_server.py | 4 |
2 files changed, 11 insertions, 6 deletions
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py index cf7785cf..97715ae3 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -368,8 +368,10 @@ class SFTPClient(BaseSFTP, ClosingContextManager): """ Rename a file or folder from ``oldpath`` to ``newpath``. - :param str oldpath: existing name of the file or folder - :param str newpath: new name for the file or folder, must not exist already + :param str oldpath: + existing name of the file or folder + :param str newpath: + new name for the file or folder, must not exist already :raises: ``IOError`` -- if ``newpath`` is a folder, or something else goes @@ -395,7 +397,9 @@ class SFTPClient(BaseSFTP, ClosingContextManager): oldpath = self._adjust_cwd(oldpath) newpath = self._adjust_cwd(newpath) self._log(DEBUG, 'posix_rename(%r, %r)' % (oldpath, newpath)) - self._request(CMD_EXTENDED, "posix-rename@openssh.com", oldpath, newpath) + self._request( + CMD_EXTENDED, "posix-rename@openssh.com", oldpath, newpath + ) def mkdir(self, path, mode=o777): """ @@ -468,8 +472,7 @@ class SFTPClient(BaseSFTP, ClosingContextManager): def symlink(self, source, dest): """ - Create a symbolic link (shortcut) of the ``source`` path at - ``destination``. + Create a symbolic link to the ``source`` path at ``destination``. :param str source: path of the original file :param str dest: path of the newly created symlink diff --git a/paramiko/sftp_server.py b/paramiko/sftp_server.py index 49e5491e..f7d1c657 100644 --- a/paramiko/sftp_server.py +++ b/paramiko/sftp_server.py @@ -472,7 +472,9 @@ class SFTPServer (BaseSFTP, SubsystemHandler): elif tag == 'posix-rename@openssh.com': oldpath = msg.get_text() newpath = msg.get_text() - self._send_status(request_number, self.server.posix_rename(oldpath, newpath)) + self._send_status( + request_number, self.server.posix_rename(oldpath, newpath) + ) else: self._send_status(request_number, SFTP_OP_UNSUPPORTED) else: |