~barry/mailman/lp1423756

« back to all changes in this revision

Viewing changes to src/mailman/handlers/decorate.py

  • 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:
17
17
 
18
18
"""Decorate a message by sticking the header and footer around it."""
19
19
 
20
 
from __future__ import absolute_import, print_function, unicode_literals
21
 
 
22
 
__metaclass__ = type
23
20
__all__ = [
24
21
    'Decorate',
25
22
    'decorate',
31
28
import logging
32
29
 
33
30
from email.mime.text import MIMEText
34
 
from urllib2 import URLError
35
 
from zope.component import getUtility
36
 
from zope.interface import implementer
37
 
 
38
31
from mailman.core.i18n import _
39
32
from mailman.email.message import Message
40
33
from mailman.interfaces.handler import IHandler
41
34
from mailman.interfaces.templates import ITemplateLoader
42
35
from mailman.utilities.string import expand
 
36
from six.moves.urllib_error import URLError
 
37
from zope.component import getUtility
 
38
from zope.interface import implementer
43
39
 
44
40
 
45
41
log = logging.getLogger('mailman.error')