/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
        else:
98
98
            return temp_t.base[:-1]
99
99
 
100
 
    def append(self, relpath, f, mode=None):
101
 
        """See Transport.append()."""
 
100
    def append_file(self, relpath, f, mode=None):
 
101
        """See Transport.append_file()."""
102
102
        _abspath = self._abspath(relpath)
103
103
        self._check_parent(_abspath)
104
104
        orig_content, orig_mode = self._files.get(_abspath, ("", None))
116
116
    def has(self, relpath):
117
117
        """See Transport.has()."""
118
118
        _abspath = self._abspath(relpath)
119
 
        return _abspath in self._files or _abspath in self._dirs
 
119
        return (_abspath in self._files) or (_abspath in self._dirs)
120
120
 
121
121
    def delete(self, relpath):
122
122
        """See Transport.delete()."""
132
132
            raise NoSuchFile(relpath)
133
133
        return StringIO(self._files[_abspath][0])
134
134
 
135
 
    def put(self, relpath, f, mode=None):
136
 
        """See Transport.put()."""
 
135
    def put_file(self, relpath, f, mode=None):
 
136
        """See Transport.put_file()."""
137
137
        _abspath = self._abspath(relpath)
138
138
        self._check_parent(_abspath)
139
139
        self._files[_abspath] = (f.read(), mode)