diff options
author | Robey Pointer <robey@lag.net> | 2006-08-22 19:56:10 -0700 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2006-08-22 19:56:10 -0700 |
commit | c2b38a1fb8cc7b41d1385027b8bf3c52abd02fda (patch) | |
tree | 85c73a7de1ffb1b6b83fb587b8949a6a69b7d12f | |
parent | 145ceab54c454f6872e34c426d6f9c0aadccbd85 (diff) |
[project @ robey@lag.net-20060823025610-adee7f6d9bd92725]
ok, ok, switch back to open()
-rw-r--r-- | paramiko/sftp_client.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py index e4f0d7c3..b31a1b4c 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -169,7 +169,7 @@ class SFTPClient (BaseSFTP): self._request(CMD_CLOSE, handle) return filelist - def file(self, filename, mode='r', bufsize=-1): + def open(self, filename, mode='r', bufsize=-1): """ Open a file on the remote server. The arguments are the same as for python's built-in C{file} (aka C{open}). A file-like object is @@ -225,9 +225,8 @@ class SFTPClient (BaseSFTP): self._log(DEBUG, 'open(%r, %r) -> %s' % (filename, mode, hexlify(handle))) return SFTPFile(self, handle, mode, bufsize) - # python has migrated toward file() instead of open(). - # and really, that's more easily identifiable. - open = file + # python continues to vacillate about "open" vs "file"... + file = open def remove(self, path): """ |