changelog: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 08 Aug 2015 00:26:49 -0700
changeset 25922 85f442747153
parent 25921 74b303a637bc
child 25923 a027a0813b44
changelog: use absolute_import
mercurial/changelog.py
--- a/mercurial/changelog.py	Sat Aug 08 00:35:37 2015 -0700
+++ b/mercurial/changelog.py	Sat Aug 08 00:26:49 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.
 
-from node import bin, hex, nullid
-from i18n import _
-import util, error, revlog, encoding
+from __future__ import absolute_import
+
+from .i18n import _
+from .node import (
+    bin,
+    hex,
+    nullid,
+)
+
+from . import (
+    encoding,
+    error,
+    revlog,
+    util,
+)
 
 _defaultextra = {'branch': 'default'}