scmwindows: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 21 Dec 2015 21:21:09 -0800
changeset 27481 029f02757c20
parent 27480 509159675cdb
child 27482 dde3da2246f1
scmwindows: use absolute_import
mercurial/scmwindows.py
tests/test-check-py3-compat.t
--- a/mercurial/scmwindows.py	Mon Dec 21 21:19:57 2015 -0800
+++ b/mercurial/scmwindows.py	Mon Dec 21 21:21:09 2015 -0800
@@ -1,7 +1,12 @@
+from __future__ import absolute_import
+
+import _winreg
 import os
-import osutil
-import util
-import _winreg
+
+from . import (
+    osutil,
+    util,
+)
 
 def systemrcpath():
     '''return default os-specific hgrc search path'''
--- a/tests/test-check-py3-compat.t	Mon Dec 21 21:19:57 2015 -0800
+++ b/tests/test-check-py3-compat.t	Mon Dec 21 21:21:09 2015 -0800
@@ -123,7 +123,6 @@
   mercurial/py3kcompat.py not using absolute_import
   mercurial/scmposix.py not using absolute_import
   mercurial/scmutil.py not using absolute_import
-  mercurial/scmwindows.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