comparison mercurial/mail.py @ 25957:ae21d51bdc43

mail: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 08 Aug 2015 19:32:19 -0700
parents fa3f0301cf91
children ce26928cbe41
comparison
equal deleted inserted replaced
25956:8cd30e9277ae 25957:ae21d51bdc43
3 # Copyright 2006 Matt Mackall <mpm@selenic.com> 3 # Copyright 2006 Matt Mackall <mpm@selenic.com>
4 # 4 #
5 # This software may be used and distributed according to the terms of the 5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version. 6 # GNU General Public License version 2 or any later version.
7 7
8 from i18n import _ 8 from __future__ import absolute_import
9 import util, encoding, sslutil 9
10 import os, smtplib, socket, quopri, time, sys
11 import email 10 import email
11 import os
12 import quopri
13 import smtplib
14 import socket
15 import sys
16 import time
17
18 from .i18n import _
19 from . import (
20 encoding,
21 sslutil,
22 util,
23 )
12 24
13 _oldheaderinit = email.Header.Header.__init__ 25 _oldheaderinit = email.Header.Header.__init__
14 def _unifiedheaderinit(self, *args, **kw): 26 def _unifiedheaderinit(self, *args, **kw):
15 """ 27 """
16 Python 2.7 introduces a backwards incompatible change 28 Python 2.7 introduces a backwards incompatible change