# HG changeset patch # User Gregory Szorc # Date 2015-12-22 05:24:49 # Node ID 39087ee8883556e234e1143a8ca931a12456d6f8 # Parent dde3da2246f1a4899157f739ae880120604a69a3 scmposix: use absolute_import diff --git a/mercurial/scmposix.py b/mercurial/scmposix.py --- a/mercurial/scmposix.py +++ b/mercurial/scmposix.py @@ -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')] diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -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