~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.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:
636
636
                label_pair = (to_label, from_label)
637
637
            else:
638
638
                label_pair = (from_label, to_label)
639
 
            print >> output_to, \
640
 
                  ("Binary files %s and %s differ" % label_pair).encode('utf8')
 
639
            output_to.write(\
 
640
                  ("Binary files %s and %s differ"\n % label_pair).encode('utf8'))
641
641
 
642
642
    def has_text(self):
643
643
        """See InventoryEntry.has_text."""
742
742
                temp = from_text
743
743
                from_text = to_text
744
744
                to_text = temp
745
 
            print >>output_to, '=== target changed %r => %r' % (from_text, to_text)
 
745
            output_to.write('=== target changed %r => %r\n' % (from_text, to_text))
746
746
        else:
747
747
            if not reverse:
748
 
                print >>output_to, '=== target was %r' % self.symlink_target
 
748
                output_to.write('=== target was %r\n' % self.symlink_target)
749
749
            else:
750
 
                print >>output_to, '=== target is %r' % self.symlink_target
 
750
                output_to.write('=== target is %r\n' % self.symlink_target)
751
751
 
752
752
    def __init__(self, file_id, name, parent_id):
753
753
        super(InventoryLink, self).__init__(file_id, name, parent_id)