~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-01-31 18:40:47 UTC
  • mfrom: (2247.1.2 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070131184047-424584b0fabcee96
(John Arbash Meinel) switch from looping over f.write() to f.writelines()

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
                os.unlink(name)
274
274
                raise
275
275
 
276
 
            for segment in contents:
277
 
                f.write(segment)
 
276
            f.writelines(contents)
278
277
        finally:
279
278
            f.close()
280
279
        self._set_mode(trans_id, mode_id, S_ISREG)