changeset 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 0a48380b61fb
children 18a032704f0a
files mercurial/mail.py
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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):