store: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 21 Dec 2015 21:19:57 -0800
changeset 27480 509159675cdb
parent 27479 3ce1d50daa99
child 27481 029f02757c20
store: use absolute_import
mercurial/store.py
tests/test-check-py3-compat.t
--- 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