~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mail_client.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:
92
92
    def compose(self, prompt, to, subject, attachment, mime_subtype,
93
93
                extension):
94
94
        """See MailClient.compose"""
95
 
        if not to:
96
 
            raise errors.NoMailAddressSpecified()
97
95
        body = msgeditor.edit_commit_message(prompt)
98
96
        if body == '':
99
97
            raise errors.NoMessageSupplied()
255
253
 
256
254
    def _get_compose_commandline(self, to, subject, attach_path):
257
255
        """See ExternalMailClient._get_compose_commandline"""
258
 
        if not to:
259
 
            raise errors.NoMailAddressSpecified()
260
256
        commandline = [to]
261
257
        if subject is not None:
262
258
            commandline.extend(['--subject', subject])