ok, ok, switch back to open()
This commit is contained in:
parent
145ceab54c
commit
c2b38a1fb8
|
@ -169,7 +169,7 @@ class SFTPClient (BaseSFTP):
|
||||||
self._request(CMD_CLOSE, handle)
|
self._request(CMD_CLOSE, handle)
|
||||||
return filelist
|
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
|
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
|
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)))
|
self._log(DEBUG, 'open(%r, %r) -> %s' % (filename, mode, hexlify(handle)))
|
||||||
return SFTPFile(self, handle, mode, bufsize)
|
return SFTPFile(self, handle, mode, bufsize)
|
||||||
|
|
||||||
# python has migrated toward file() instead of open().
|
# python continues to vacillate about "open" vs "file"...
|
||||||
# and really, that's more easily identifiable.
|
file = open
|
||||||
open = file
|
|
||||||
|
|
||||||
def remove(self, path):
|
def remove(self, path):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue