~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

  • Committer: Robert Collins
  • Date: 2007-08-08 07:16:18 UTC
  • mto: This revision was merged to the branch mainline in revision 2741.
  • Revision ID: robertc@robertcollins.net-20070808071618-4e1jopgxjj6g16ug
Review feedback.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
                abspath = self.base
86
86
            return LocalTransport(abspath)
87
87
 
88
 
    def close_file_stream(self, relpath):
89
 
        """See Transport.close_file_stream."""
90
 
        handle = transport._file_streams.pop(self.abspath(relpath))
91
 
        handle.close()
92
 
 
93
88
    def _abspath(self, relative_reference):
94
89
        """Return a path for use in os calls.
95
90
 
316
311
        self.put_bytes_non_atomic(relpath, "", mode=mode)
317
312
        handle = open(self._abspath(relpath), 'wb')
318
313
        transport._file_streams[self.abspath(relpath)] = handle
319
 
        return handle.write
 
314
        return transport.FileFileStream(self, relpath, handle)
320
315
 
321
316
    def _get_append_file(self, relpath, mode=None):
322
317
        """Call os.open() for the given relpath"""