archival: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Fri, 07 Aug 2015 19:47:49 -0700
changeset 25916 c1777ece502a
parent 25915 7ef98b38163f
child 25917 aa323b53e3f9
archival: use absolute_import
mercurial/archival.py
--- a/mercurial/archival.py	Fri Aug 07 19:45:48 2015 -0700
+++ b/mercurial/archival.py	Fri Aug 07 19:47:49 2015 -0700
@@ -5,14 +5,27 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-from i18n import _
-import match as matchmod
-import cmdutil
-import scmutil, util, encoding
-import cStringIO, os, tarfile, time, zipfile
-import zlib, gzip
+from __future__ import absolute_import
+
+import cStringIO
+import gzip
+import os
 import struct
-import error
+import tarfile
+import time
+import zipfile
+import zlib
+
+from .i18n import _
+
+from . import (
+    cmdutil,
+    encoding,
+    error,
+    match as matchmod,
+    scmutil,
+    util,
+)
 
 # from unzip source code:
 _UNX_IFREG = 0x8000