Show More
@@ -134,6 +134,9 b' web.baseurl' | |||||
134 | ''' |
|
134 | ''' | |
135 |
|
135 | |||
136 | import email, socket, time |
|
136 | import email, socket, time | |
|
137 | # On python2.4 you have to import this by name or they fail to | |||
|
138 | # load. This was not a problem on Python 2.7. | |||
|
139 | import email.Parser | |||
137 | from mercurial.i18n import _ |
|
140 | from mercurial.i18n import _ | |
138 | from mercurial import patch, cmdutil, templater, util, mail |
|
141 | from mercurial import patch, cmdutil, templater, util, mail | |
139 | import fnmatch |
|
142 | import fnmatch |
@@ -47,6 +47,11 b' hgrc(5) for details.' | |||||
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 _ |
@@ -9,6 +9,10 b' 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 | |||
12 |
|
16 | |||
13 | _oldheaderinit = email.Header.Header.__init__ |
|
17 | _oldheaderinit = email.Header.Header.__init__ | |
14 | def _unifiedheaderinit(self, *args, **kw): |
|
18 | def _unifiedheaderinit(self, *args, **kw): |
@@ -8,6 +8,10 b'' | |||||
8 |
|
8 | |||
9 | import cStringIO, email, os, errno, re, posixpath |
|
9 | import cStringIO, email, os, errno, re, posixpath | |
10 | import tempfile, zlib, shutil |
|
10 | import tempfile, zlib, shutil | |
|
11 | # On python2.4 you have to import these by name or they fail to | |||
|
12 | # load. This was not a problem on Python 2.7. | |||
|
13 | import email.Generator | |||
|
14 | import email.Parser | |||
11 |
|
15 | |||
12 | from i18n import _ |
|
16 | from i18n import _ | |
13 | from node import hex, nullid, short |
|
17 | from node import hex, nullid, short |
General Comments 0
You need to be logged in to leave comments.
Login now