mail: drop explicit mail import required by Python 2.4
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 18 May 2015 16:46:32 -0500
changeset 25205 ff2ec757aacb
parent 25204 0a48380b61fb
child 25206 18a032704f0a
mail: drop explicit mail import required by Python 2.4 He's dead, Jim.
mercurial/mail.py
--- a/mercurial/mail.py	Mon May 18 16:33:57 2015 -0500
+++ b/mercurial/mail.py	Mon May 18 16:46:32 2015 -0500
@@ -9,10 +9,6 @@
 import util, encoding, sslutil
 import os, smtplib, socket, quopri, time, sys
 import email
-# On python2.4 you have to import these by name or they fail to
-# load. This was not a problem on Python 2.7.
-import email.Header
-import email.MIMEText
 
 _oldheaderinit = email.Header.Header.__init__
 def _unifiedheaderinit(self, *args, **kw):