~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockable_files.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-05 19:58:39 UTC
  • mto: (1946.2.8 reduce-knit-churn)
  • mto: This revision was merged to the branch mainline in revision 1988.
  • Revision ID: john@arbash-meinel.com-20060905195839-307783fb130a341c
avoid some deprecation warnings in other parts of the code

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)