mercurial/mail.py
changeset 29192 bac14dbbbfab
parent 28935 a4c5c23de1d3
child 29227 dffe78d80a6c
equal deleted inserted replaced
29191:ad1ce3c7af72 29192:bac14dbbbfab
    39     """
    39     """
    40     # override continuation_ws
    40     # override continuation_ws
    41     kw['continuation_ws'] = ' '
    41     kw['continuation_ws'] = ' '
    42     _oldheaderinit(self, *args, **kw)
    42     _oldheaderinit(self, *args, **kw)
    43 
    43 
    44 email.Header.Header.__dict__['__init__'] = _unifiedheaderinit
    44 setattr(email.header.Header, '__init__', _unifiedheaderinit)
    45 
    45 
    46 class STARTTLS(smtplib.SMTP):
    46 class STARTTLS(smtplib.SMTP):
    47     '''Derived class to verify the peer certificate for STARTTLS.
    47     '''Derived class to verify the peer certificate for STARTTLS.
    48 
    48 
    49     This class allows to pass any keyword arguments to SSL socket creation.
    49     This class allows to pass any keyword arguments to SSL socket creation.