branchmap: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Fri, 07 Aug 2015 19:51:55 -0700
changeset 25918 47f36e050c2e
parent 25917 aa323b53e3f9
child 25919 8221fefaea08
branchmap: use absolute_import
mercurial/branchmap.py
--- 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"""