~abompard/mailman/link_on_creation

« back to all changes in this revision

Viewing changes to src/mailman/runners/docs/outgoing.rst

  • Committer: Barry Warsaw
  • Date: 2014-04-28 15:23:35 UTC
  • Revision ID: barry@list.org-20140428152335-uomli7adnqf3h6dm
Use print functions consistently through, and update all __future__ imports to
reflect this.

Also, mock out sys.stderr on some tests so that their nose2 output is quieter.

A few other minor coding style consistencies.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
    >>> len(messages)
75
75
    1
76
76
 
77
 
    >>> print messages[0].as_string()
 
77
    >>> print(messages[0].as_string())
78
78
    From: aperson@example.com
79
79
    To: test@example.com
80
80
    Subject: My first post
119
119
    >>> from operator import itemgetter
120
120
    >>> def show_headers(messages):
121
121
    ...     for message in sorted(messages, key=itemgetter('x-rcptto')):
122
 
    ...         print message['X-RcptTo'], message['X-MailFrom']
 
122
    ...         print(message['X-RcptTo'], message['X-MailFrom'])
123
123
 
124
124
    >>> show_headers(messages)
125
125
    aperson@example.com   test-bounces@example.com