~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockable_files.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-01 23:48:08 UTC
  • mfrom: (2225.1.6 revert)
  • Revision ID: pqm@pqm.ubuntu.com-20070201234808-3b1302d73474bd8c
Display changes made by revert

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
                     directory
194
194
        :param f: A file-like or string object whose contents should be copied.
195
195
        """
196
 
        self._transport.put(self._escape(path), file, mode=self._file_mode)
 
196
        self._transport.put_file(self._escape(path), file, mode=self._file_mode)
197
197
 
198
198
    @needs_write_lock
199
199
    def put_utf8(self, path, a_string):
339
339
    def create(self, mode=None):
340
340
        """Create lock mechanism"""
341
341
        # for old-style locks, create the file now
342
 
        self._transport.put(self._escaped_name, StringIO(), 
 
342
        self._transport.put_bytes(self._escaped_name, '',
343
343
                            mode=self._file_modebits)