mail: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 08 Aug 2015 19:32:19 -0700
changeset 25957 ae21d51bdc43
parent 25956 8cd30e9277ae
child 25958 c4ccf2d394a7
mail: use absolute_import
mercurial/mail.py
--- a/mercurial/mail.py	Sat Aug 08 19:30:17 2015 -0700
+++ b/mercurial/mail.py	Sat Aug 08 19:32:19 2015 -0700
@@ -5,10 +5,22 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-from i18n import _
-import util, encoding, sslutil
-import os, smtplib, socket, quopri, time, sys
+from __future__ import absolute_import
+
 import email
+import os
+import quopri
+import smtplib
+import socket
+import sys
+import time
+
+from .i18n import _
+from . import (
+    encoding,
+    sslutil,
+    util,
+)
 
 _oldheaderinit = email.Header.Header.__init__
 def _unifiedheaderinit(self, *args, **kw):