changeset 27480:509159675cdb

store: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Dec 2015 21:19:57 -0800
parents 3ce1d50daa99
children 029f02757c20
files mercurial/store.py tests/test-check-py3-compat.t
diffstat 2 files changed, 13 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/store.py	Mon Dec 21 21:33:27 2015 -0800
+++ b/mercurial/store.py	Mon Dec 21 21:19:57 2015 -0800
@@ -5,9 +5,19 @@
 # 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 scmutil, util, parsers, error
-import os, stat, errno
+from __future__ import absolute_import
+
+import errno
+import os
+import stat
+
+from .i18n import _
+from . import (
+    error,
+    parsers,
+    scmutil,
+    util,
+)
 
 _sha = util.sha1
 
--- a/tests/test-check-py3-compat.t	Mon Dec 21 21:33:27 2015 -0800
+++ b/tests/test-check-py3-compat.t	Mon Dec 21 21:19:57 2015 -0800
@@ -124,7 +124,6 @@
   mercurial/scmposix.py not using absolute_import
   mercurial/scmutil.py not using absolute_import
   mercurial/scmwindows.py not using absolute_import
-  mercurial/store.py not using absolute_import
   setup.py not using absolute_import
   tests/filterpyflakes.py requires print_function
   tests/generate-working-copy-states.py requires print_function