Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
19809:50d721553198 | 19810:c80feeb715d1 |
---|---|
132 references. See also ``notify.strip``. | 132 references. See also ``notify.strip``. |
133 | 133 |
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 |
140 | 143 |
141 testedwith = 'internal' | 144 testedwith = 'internal' |