~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_msgeditor.py

  • Committer: Daniel Watkins
  • Date: 2007-08-21 12:28:01 UTC
  • mto: (2765.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2766.
  • Revision ID: d.m.watkins@warwick.ac.uk-20070821122801-y8y7bf9n928hbjfb
Used format string as suggested by abentley.

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
    s = f.read()
103
103
    f.close()
104
104
    f = file(fn, 'wb')
105
 
    f.write('""" + message + """')
 
105
    f.write('%s')
106
106
    f.write(s)
107
107
    f.close()
108
 
""")
 
108
""" % (message, ))
109
109
        f.close()
110
110
        if sys.platform == "win32":
111
111
            # [win32] make batch file and set BZR_EDITOR