[PATCH 3 of 5] changelog: use absolute_import

Gregory Szorc gregory.szorc at gmail.com
Sat Aug 8 03:00:24 CDT 2015


# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1439018809 25200
#      Sat Aug 08 00:26:49 2015 -0700
# Node ID a9f201c2e5b32a0d94f86a0bad90f85cd2128ab7
# Parent  29521cdb45fdd34870bf20a328f35c876c53f2f5
changelog: use absolute_import

diff --git a/mercurial/changelog.py b/mercurial/changelog.py
--- a/mercurial/changelog.py
+++ b/mercurial/changelog.py
@@ -4,11 +4,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 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'}
 
 def _string_escape(text):


More information about the Mercurial-devel mailing list