# HG changeset patch # User Gregory Szorc # Date 2015-12-12 18:46:32 # Node ID 810337ae1b76ff9553c6a8d8ef1293a0a0649498 # Parent 9a17576103a449055c49f4b1fe8cd9601516871e osutil: use absolute_import diff --git a/mercurial/pure/osutil.py b/mercurial/pure/osutil.py --- a/mercurial/pure/osutil.py +++ b/mercurial/pure/osutil.py @@ -5,6 +5,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. +from __future__ import absolute_import + import os import stat as statmod @@ -58,7 +60,8 @@ def listdir(path, stat=False, skip=None) if os.name != 'nt': posixfile = open else: - import ctypes, msvcrt + import ctypes + import msvcrt _kernel32 = ctypes.windll.kernel32 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 @@ -122,7 +122,6 @@ mercurial/manifest.py not using absolute_import mercurial/mdiff.py not using absolute_import mercurial/patch.py not using absolute_import - mercurial/pure/osutil.py not using absolute_import mercurial/pure/parsers.py not using absolute_import mercurial/pvec.py not using absolute_import mercurial/py3kcompat.py not using absolute_import