changeset 25916:c1777ece502a

archival: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 07 Aug 2015 19:47:49 -0700
parents 7ef98b38163f
children aa323b53e3f9
files mercurial/archival.py
diffstat 1 files changed, 20 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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