changeset 27483:39087ee88835

scmposix: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Dec 2015 21:24:49 -0800
parents dde3da2246f1
children 0d7635dca691
files mercurial/scmposix.py tests/test-check-py3-compat.t
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/scmposix.py	Mon Dec 21 21:23:43 2015 -0800
+++ b/mercurial/scmposix.py	Mon Dec 21 21:24:49 2015 -0800
@@ -1,5 +1,11 @@
-import sys, os
-import osutil
+from __future__ import absolute_import
+
+import os
+import sys
+
+from . import (
+    osutil,
+)
 
 def _rcfiles(path):
     rcs = [os.path.join(path, 'hgrc')]
--- a/tests/test-check-py3-compat.t	Mon Dec 21 21:23:43 2015 -0800
+++ b/tests/test-check-py3-compat.t	Mon Dec 21 21:24:49 2015 -0800
@@ -121,7 +121,6 @@
   mercurial/patch.py not using absolute_import
   mercurial/pvec.py not using absolute_import
   mercurial/py3kcompat.py not using absolute_import
-  mercurial/scmposix.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