extensions: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 08 Aug 2015 19:13:14 -0700
changeset 25946 5e0d80195a0f
parent 25945 147bd9e238a1
child 25947 6002e2d95e54
extensions: use absolute_import
mercurial/extensions.py
--- a/mercurial/extensions.py	Sat Aug 08 19:09:09 2015 -0700
+++ b/mercurial/extensions.py	Sat Aug 08 19:13:14 2015 -0700
@@ -5,9 +5,21 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-import imp, os
-import util, cmdutil, error
-from i18n import _, gettext
+from __future__ import absolute_import
+
+import imp
+import os
+
+from .i18n import (
+    _,
+    gettext,
+)
+
+from . import (
+    cmdutil,
+    error,
+    util,
+)
 
 _extensions = {}
 _aftercallbacks = {}