~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_log.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-10-19 20:12:26 UTC
  • mfrom: (2911.6.4 bzr.writes)
  • Revision ID: pqm@pqm.ubuntu.com-20071019201226-6z006xotgfe7zmu8
(Blake Winton) Switch 'print >>f' to 'f.write()' throughout the codebase

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
        wt.commit(message='add file1 and file2')
167
167
        self.run_bzr('branch parent child')
168
168
        os.unlink('child/file1')
169
 
        print >> file('child/file2', 'wb'), 'hello'
 
169
        file('child/file2', 'wb').write('hello\n')
170
170
        self.run_bzr(['commit', '-m', 'remove file1 and modify file2',
171
171
            'child'])
172
172
        os.chdir('parent')
357
357
        wt.commit('first post')
358
358
        self.run_bzr('branch parent child')
359
359
        os.unlink('child/f1')
360
 
        print >> file('child/f2', 'wb'), 'hello'
 
360
        file('child/f2', 'wb').write('hello\n')
361
361
        self.run_bzr(['commit', '-m', 'removed f1 and modified f2',
362
362
            'child'])
363
363
        os.chdir('parent')