/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/smtp_connection.py

  • Committer: Martin
  • Date: 2017-06-05 20:48:31 UTC
  • mto: This revision was merged to the branch mainline in revision 6658.
  • Revision ID: gzlist@googlemail.com-20170605204831-20accykspjcrx0a8
Apply 2to3 dict fixer and clean up resulting mess using view helpers

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
                                      message.as_string())
184
184
        except smtplib.SMTPRecipientsRefused as e:
185
185
            raise SMTPError('server refused recipient: %d %s' %
186
 
                    e.recipients.values()[0])
 
186
                    next(iter(e.recipients.values())))
187
187
        except smtplib.SMTPResponseException as e:
188
188
            raise SMTPError('%d %s' % (e.smtp_code, e.smtp_error))
189
189
        except smtplib.SMTPException as e: