~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-06 16:21:16 UTC
  • mfrom: (1955.3.30 transport_bytes)
  • Revision ID: pqm@pqm.ubuntu.com-20060906162116-90b02cf97bcc11e8
(jam) create Transport.*_{file,bytes}

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
        else:
99
99
            return temp_t.base[:-1]
100
100
 
101
 
    def append(self, relpath, f, mode=None):
102
 
        """See Transport.append()."""
 
101
    def append_file(self, relpath, f, mode=None):
 
102
        """See Transport.append_file()."""
103
103
        _abspath = self._abspath(relpath)
104
104
        self._check_parent(_abspath)
105
105
        orig_content, orig_mode = self._files.get(_abspath, ("", None))
133
133
            raise NoSuchFile(relpath)
134
134
        return StringIO(self._files[_abspath][0])
135
135
 
136
 
    def put(self, relpath, f, mode=None):
137
 
        """See Transport.put()."""
 
136
    def put_file(self, relpath, f, mode=None):
 
137
        """See Transport.put_file()."""
138
138
        _abspath = self._abspath(relpath)
139
139
        self._check_parent(_abspath)
140
140
        self._files[_abspath] = (f.read(), mode)