formatter: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 08 Aug 2015 19:17:40 -0700
changeset 25950 175873e36d03
parent 25949 80aba76e29c1
child 25951 69751804f2f5
formatter: use absolute_import
mercurial/formatter.py
--- a/mercurial/formatter.py	Sat Aug 08 19:15:09 2015 -0700
+++ b/mercurial/formatter.py	Sat Aug 08 19:17:40 2015 -0700
@@ -5,13 +5,23 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
+from __future__ import absolute_import
+
 import cPickle
-from node import hex, short
-from i18n import _
-import encoding, util
-import templater
 import os
 
+from .i18n import _
+from .node import (
+    hex,
+    short,
+)
+
+from . import (
+    encoding,
+    templater,
+    util,
+)
+
 class baseformatter(object):
     def __init__(self, ui, topic, opts):
         self._ui = ui