~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/text.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-05 20:08:52 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-20060905200852-067430c9209fea7f
Find more occurrances of put() and replace with put_file or put_bytes

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
    def _try_put(self, fn, f):
65
65
        try:
66
 
            self._transport.put(fn, f, mode=self._file_mode)
 
66
            self._transport.put_file(fn, f, mode=self._file_mode)
67
67
        except NoSuchFile:
68
68
            if not self._prefixed:
69
69
                raise
71
71
                self._transport.mkdir(os.path.dirname(fn), mode=self._dir_mode)
72
72
            except FileExists:
73
73
                pass
74
 
            self._transport.put(fn, f, mode=self._file_mode)
 
74
            self._transport.put_file(fn, f, mode=self._file_mode)
75
75
 
76
76
    def _get(self, fn):
77
77
        if fn.endswith('.gz'):