phases: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 08 Aug 2015 19:46:33 -0700
changeset 25966 f14cea32e1d4
parent 25965 e6b56b2c1f26
child 25967 224a33452ed4
phases: use absolute_import
mercurial/phases.py
--- a/mercurial/phases.py	Sat Aug 08 19:45:45 2015 -0700
+++ b/mercurial/phases.py	Sat Aug 08 19:46:33 2015 -0700
@@ -100,11 +100,23 @@
 
 """
 
-import os
+from __future__ import absolute_import
+
 import errno
-from node import nullid, nullrev, bin, hex, short
-from i18n import _
-import util, error
+import os
+
+from .i18n import _
+from .node import (
+    bin,
+    hex,
+    nullid,
+    nullrev,
+    short,
+)
+from . import (
+    error,
+    util,
+)
 
 allphases = public, draft, secret = range(3)
 trackedphases = allphases[1:]