~nkarageuzian/mailman/bug-1312884

« back to all changes in this revision

Viewing changes to src/mailman/app/docs/pipelines.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:
9
9
no way to stop a pipeline from processing the message once it's started.
10
10
 
11
11
    >>> mlist = create_list('test@example.com')
12
 
    >>> print mlist.posting_pipeline
 
12
    >>> print(mlist.posting_pipeline)
13
13
    default-posting-pipeline
14
14
    >>> from mailman.core.pipelines import process
15
15
 
34
34
The message has been modified with additional headers, footer decorations,
35
35
etc.
36
36
 
37
 
    >>> print msg.as_string()
 
37
    >>> print(msg.as_string())
38
38
    From: aperson@example.com
39
39
    To: test@example.com
40
40
    Message-ID: <first>
73
73
    >>> len(messages)
74
74
    1
75
75
 
76
 
    >>> print messages[0].msg.as_string()
 
76
    >>> print(messages[0].msg.as_string())
77
77
    From: aperson@example.com
78
78
    To: test@example.com
79
79
    Message-ID: <first>
110
110
    >>> len(messages)
111
111
    1
112
112
 
113
 
    >>> print messages[0].msg.as_string()
 
113
    >>> print(messages[0].msg.as_string())
114
114
    From: aperson@example.com
115
115
    To: test@example.com
116
116
    Message-ID: <first>
141
141
    >>> sum(1 for mboxmsg in digest)
142
142
    1
143
143
 
144
 
    >>> print list(digest)[0].as_string()
 
144
    >>> print(list(digest)[0].as_string())
145
145
    From: aperson@example.com
146
146
    To: test@example.com
147
147
    Message-ID: <first>