diff hgext/notify.py @ 19810:c80feeb715d1

python2.4: fix imports of sub-packages of the email package These all have an obvious comment so if/when we finally ditch Python 2.4 we can eradicate them easily.
author Augie Fackler <raf@durin42.com>
date Tue, 24 Sep 2013 15:10:32 -0400
parents efee1f35fcae
children e96e9f805c19
line wrap: on
line diff
--- a/hgext/notify.py	Fri Sep 20 09:16:07 2013 -0400
+++ b/hgext/notify.py	Tue Sep 24 15:10:32 2013 -0400
@@ -134,6 +134,9 @@
 '''
 
 import email, socket, time
+# On python2.4 you have to import this by name or they fail to
+# load. This was not a problem on Python 2.7.
+import email.Parser
 from mercurial.i18n import _
 from mercurial import patch, cmdutil, templater, util, mail
 import fnmatch