diff --git a/fs/sshfs/sshfs.py b/fs/sshfs/sshfs.py index aaa4cda..255249a 100644 --- a/fs/sshfs/sshfs.py +++ b/fs/sshfs/sshfs.py @@ -329,8 +329,7 @@ def openbin(self, path, mode='r', buffering=-1, **options): # noqa: D102 elif self.isdir(_path): raise errors.FileExpected(path) with convert_sshfs_errors('openbin', path): - _sftp = self._client.open_sftp() - handle = _sftp.open( + handle = self._sftp.open( _path, mode=_mode.to_platform_bin(), bufsize=buffering