##// END OF EJS Templates
py3: use setattr() to assign new class attribute...
Pulkit Goyal -
r29192:bac14dbb default
parent child Browse files
Show More
@@ -41,7 +41,7 b' def _unifiedheaderinit(self, *args, **kw'
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.
General Comments 0
You need to be logged in to leave comments. Login now