comparison mercurial/mail.py @ 25205:ff2ec757aacb

mail: drop explicit mail import required by Python 2.4 He's dead, Jim.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 18 May 2015 16:46:32 -0500
parents a4af6fd99fb0
children 9d1c61715939
comparison
equal deleted inserted replaced
25204:0a48380b61fb 25205:ff2ec757aacb
7 7
8 from i18n import _ 8 from i18n import _
9 import util, encoding, sslutil 9 import util, encoding, sslutil
10 import os, smtplib, socket, quopri, time, sys 10 import os, smtplib, socket, quopri, time, sys
11 import email 11 import email
12 # On python2.4 you have to import these by name or they fail to
13 # load. This was not a problem on Python 2.7.
14 import email.Header
15 import email.MIMEText
16 12
17 _oldheaderinit = email.Header.Header.__init__ 13 _oldheaderinit = email.Header.Header.__init__
18 def _unifiedheaderinit(self, *args, **kw): 14 def _unifiedheaderinit(self, *args, **kw):
19 """ 15 """
20 Python 2.7 introduces a backwards incompatible change 16 Python 2.7 introduces a backwards incompatible change