~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/tree_implementations/test_inv.py

  • Committer: Blake Winton
  • Date: 2007-10-16 16:02:01 UTC
  • mto: This revision was merged to the branch mainline in revision 2921.
  • Revision ID: bwinton@latte.ca-20071016160201-os2bci2ujf7in7an
Change 'print >> f,'s to 'f.write('s.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
        super(TestEntryDiffing, self).setUp()
38
38
        self.wt = self.make_branch_and_tree('.')
39
39
        self.branch = self.wt.branch
40
 
        print >> open('file', 'wb'), 'foo'
41
 
        print >> open('binfile', 'wb'), 'foo'
 
40
        open('file', 'wb').write('foo\n')
 
41
        open('binfile', 'wb').write('foo\n')
42
42
        self.wt.add(['file'], ['fileid'])
43
43
        self.wt.add(['binfile'], ['binfileid'])
44
44
        if has_symlinks():
45
45
            os.symlink('target1', 'symlink')
46
46
            self.wt.add(['symlink'], ['linkid'])
47
47
        self.wt.commit('message_1', rev_id = '1')
48
 
        print >> open('file', 'wb'), 'bar'
49
 
        print >> open('binfile', 'wb'), 'x' * 1023 + '\x00'
 
48
        open('file', 'wb').write('bar\n')
 
49
        open('binfile', 'wb').write('x' * 1023 + '\x00\n')
50
50
        if has_symlinks():
51
51
            os.unlink('symlink')
52
52
            os.symlink('target2', 'symlink')