~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2258.3.4.

  • Committer: James Westby
  • Date: 2007-02-26 21:48:05 UTC
  • mto: (2304.1.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2305.
  • Revision ID: jw+debian@jameswestby.net-20070226214805-umfrbzkqnvvrna64
Make the handling of the msgfile more sane.

  * Close it in a finally block for more safety.
  * Open it at the start and just write to it instead of building up the
    message.
  * Don't close the fileno from mkstemp, just convert it to a filehandle
    straight away.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: