~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_branch.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:
539
539
                                   ensure_config_dir_exists)
540
540
        ensure_config_dir_exists()
541
541
        fn = locations_config_filename()
542
 
        print >> open(fn, 'wt'), ("[%s]\n"
543
 
                                  "push_location=foo" %
544
 
                                  self.get_branch().base[:-1])
 
542
        open(fn, 'wt').write(("[%s]\n"
 
543
                                  "push_location=foo\n" %
 
544
                                  self.get_branch().base[:-1]))
545
545
        self.assertEqual("foo", self.get_branch().get_push_location())
546
546
 
547
547
    def test_set_push_location(self):