~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/msgeditor.py

  • Committer: Daniel Watkins
  • Date: 2007-08-07 11:38:26 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-20070807113826-5b98xh1jcllm1frx
Updated as per poolie's !tweak.

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
                if stripped_line != "":
132
132
                    lastline = nlines
133
133
                msg.append(line)
134
 
            f.close()
135
134
        except UnicodeDecodeError:
136
 
            f.close()
137
135
            raise BadCommitMessageEncoding()
 
136
        finally:
 
137
            f.close()
138
138
 
139
139
        if len(msg) == 0:
140
140
            return ""