~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_pack.py

  • Committer: John Arbash Meinel
  • Date: 2011-10-03 14:15:44 UTC
  • mto: This revision was merged to the branch mainline in revision 6186.
  • Revision ID: john@arbash-meinel.com-20111003141544-2upoh3swgxqerfv7
Separate the comments, for vila.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
    def _update_file(self, path, text, checkin=True):
40
40
        """append text to file 'path' and check it in"""
41
 
        open(path, 'a').write(text)
 
41
        with open(path, 'a') as f:
 
42
            f.write(text)
 
43
 
42
44
        if checkin:
43
45
            self.run_bzr(['ci', path, '-m', '"' + path + '"'])
44
46