Mercurial > public > mercurial-scm > hg
comparison hgext/patchbomb.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 | f4b72cad29f8 |
children | 49f2d5644f04 |
comparison
equal
deleted
inserted
replaced
19809:50d721553198 | 19810:c80feeb715d1 |
---|---|
45 hgrc(5) for details. | 45 hgrc(5) for details. |
46 ''' | 46 ''' |
47 | 47 |
48 import os, errno, socket, tempfile, cStringIO | 48 import os, errno, socket, tempfile, cStringIO |
49 import email | 49 import email |
50 # On python2.4 you have to import these by name or they fail to | |
51 # load. This was not a problem on Python 2.7. | |
52 import email.Generator | |
53 import email.MIMEMultipart | |
54 | |
50 from mercurial import cmdutil, commands, hg, mail, patch, util | 55 from mercurial import cmdutil, commands, hg, mail, patch, util |
51 from mercurial import scmutil | 56 from mercurial import scmutil |
52 from mercurial.i18n import _ | 57 from mercurial.i18n import _ |
53 from mercurial.node import bin | 58 from mercurial.node import bin |
54 | 59 |