diff options
author | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2010-10-12 22:07:40 +0000 |
---|---|---|
committer | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2010-10-12 22:07:40 +0000 |
commit | 2a762e6561386409d2b8fb06d4a2bd4286bf5e28 (patch) | |
tree | 210a13c486b21d44b8137e5748137b3a099a1252 /fs/remote.py | |
parent | f152c40169058be47d9c7688eb89c06486ba3bb0 (diff) | |
download | pyfilesystem-2a762e6561386409d2b8fb06d4a2bd4286bf5e28.tar.gz |
Fix various DAVFS issues from issue #40
* don't close the socket when handing off to RemoteFileBuffer
* remove redundant check for "w" mode in the 404 case
* properly close the socket in the isdir() case
* add readline() method to RemoteFileBuffer
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@485 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/remote.py')
-rw-r--r-- | fs/remote.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/remote.py b/fs/remote.py index 19cceb1..573b37f 100644 --- a/fs/remote.py +++ b/fs/remote.py @@ -158,6 +158,11 @@ class RemoteFileBuffer(object): # TODO: implement this with on-demand loading. self._fillbuffer() return self.file.__iter__() + + def readline(self): + # TODO: implement this with on-demand loading. + self._fillbuffer() + return self.file.readline() def _read(self, length=None): """Read data from the remote file into the local buffer.""" |