changeset 25918:47f36e050c2e

branchmap: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 07 Aug 2015 19:51:55 -0700
parents aa323b53e3f9
children 8221fefaea08
files mercurial/branchmap.py
diffstat 1 files changed, 21 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/branchmap.py	Fri Aug 07 19:49:21 2015 -0700
+++ b/mercurial/branchmap.py	Fri Aug 07 19:51:55 2015 -0700
@@ -5,13 +5,28 @@
 # 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, nullrev
-import encoding
-import scmutil
-import util
+from __future__ import absolute_import
+
+import array
+import struct
 import time
-from array import array
-from struct import calcsize, pack, unpack
+
+from .node import (
+    bin,
+    hex,
+    nullid,
+    nullrev,
+)
+from . import (
+    encoding,
+    scmutil,
+    util,
+)
+
+array = array.array
+calcsize = struct.calcsize
+pack = struct.pack
+unpack = struct.unpack
 
 def _filename(repo):
     """name of a branchcache file for a given repo or repoview"""