~barry/mailman/lp1423756

« back to all changes in this revision

Viewing changes to src/mailman/mta/docs/bulk.rst

  • Committer: Barry Warsaw
  • Date: 2015-01-05 01:20:33 UTC
  • mfrom: (7264.4.66 py3)
  • Revision ID: barry@list.org-20150105012033-zdrw9c2odhpf22fz
Merge the Python 3 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
332
332
 
333
333
    >>> failures = bulk.deliver(mlist, msg, msgdata)
334
334
    >>> for address in sorted(failures):
335
 
    ...     print(address, failures[address][0], failures[address][1])
 
335
    ...     print(address, failures[address][0],
 
336
    ...                    failures[address][1].decode('ascii'))
336
337
    aperson@example.org 500 Error: SMTPRecipientsRefused
337
338
    bperson@example.org 500 Error: SMTPRecipientsRefused
338
339
    cperson@example.org 500 Error: SMTPRecipientsRefused
350
351
 
351
352
    >>> failures = bulk.deliver(mlist, msg, msgdata)
352
353
    >>> for address in sorted(failures):
353
 
    ...     print(address, failures[address][0], failures[address][1])
 
354
    ...     print(address, failures[address][0],
 
355
    ...                    failures[address][1].decode('ascii'))
354
356
    aperson@example.org 450 Error: SMTPResponseException
355
357
    bperson@example.org 450 Error: SMTPResponseException
356
358
    cperson@example.org 450 Error: SMTPResponseException
361
363
 
362
364
    >>> failures = bulk.deliver(mlist, msg, msgdata)
363
365
    >>> for address in sorted(failures):
364
 
    ...     print(address, failures[address][0], failures[address][1])
 
366
    ...     print(address, failures[address][0],
 
367
    ...                    failures[address][1].decode('ascii'))
365
368
    aperson@example.org 500 Error: SMTPResponseException
366
369
    bperson@example.org 500 Error: SMTPResponseException
367
370
    cperson@example.org 500 Error: SMTPResponseException